test262/tools/lint/test/fixtures/features.txt
Philip Chimento a58ae41ea7 linter: Fix parsing features.txt
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.
2023-03-06 17:31:20 +01:00

7 lines
144 B
Plaintext

# Here is a full-line comment: not-a-valid-feature
async-functions # This is a partial-line comment
object-spread
generators
BigInt
TypedArray