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.