mirror of https://github.com/tc39/test262.git
a58ae41ea7
Previously, split() would split on whitespace, then the if-condition would remove `#` - interpreting every word in every comment in the file as a potential valid feature flag. We want splitlines() here. Partial-line comments were inadvertently "supported" before, because of this bug. Instead, support them explicitly by chopping off a `#` character, anything after it, and any whitespace immediately preceding it. |
||
---|---|---|
.. | ||
__init__.py | ||
esid.py | ||
features.py | ||
filename.py | ||
flags.py | ||
frontmatter.py | ||
harness.py | ||
harnessfeatures.py | ||
includes.py | ||
license.py | ||
negative.py | ||
nopadding.py | ||
posix.py |