Skip to content
Snippets Groups Projects
  • Mike Pennisi's avatar
    3269aea2
    Remove faulty `throw` statements · 3269aea2
    Mike Pennisi authored
    The `throw` statements that were recently inserted into these tests have
    an observable impact on the parsing behavior: they causes the `"use
    strict"` token sequence to be interpreted as a string literal instead of
    a directive prolog, which in turn effects how the tests are interpreted.
    
    Remove the new `throw` statements from these tests and rely on
    previously-existing statements that serve the same purpose without
    impacting program strictness.
    3269aea2
    History
    Remove faulty `throw` statements
    Mike Pennisi authored
    The `throw` statements that were recently inserted into these tests have
    an observable impact on the parsing behavior: they causes the `"use
    strict"` token sequence to be interpreted as a string literal instead of
    a directive prolog, which in turn effects how the tests are interpreted.
    
    Remove the new `throw` statements from these tests and rely on
    previously-existing statements that serve the same purpose without
    impacting program strictness.
lint.whitelist 588 B
# Tests that intentionally violate the project's linting rules (along with a
# space-separated list of the specific rules they violate) should be specified
# in this file.
#
# Example:
#
# test/language/made-up-file.js FRONTMATTER LICENSE
#
# Note that lines prefixed with the "hash" symbol (#) will be ignored.
test/language/directive-prologue/10.1.1-5gs.js NEGATIVE
test/language/directive-prologue/10.1.1-2gs.js NEGATIVE
test/language/directive-prologue/14.1-5gs.js NEGATIVE
test/language/directive-prologue/14.1-4gs.js NEGATIVE
test/language/directive-prologue/10.1.1-8gs.js NEGATIVE