Remove faulty `throw` statements
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.
Showing
- lint.whitelist 5 additions, 0 deletionslint.whitelist
- test/language/directive-prologue/10.1.1-2gs.js 0 additions, 2 deletionstest/language/directive-prologue/10.1.1-2gs.js
- test/language/directive-prologue/10.1.1-5gs.js 0 additions, 2 deletionstest/language/directive-prologue/10.1.1-5gs.js
- test/language/directive-prologue/10.1.1-8gs.js 0 additions, 2 deletionstest/language/directive-prologue/10.1.1-8gs.js
- test/language/directive-prologue/14.1-4gs.js 0 additions, 2 deletionstest/language/directive-prologue/14.1-4gs.js
- test/language/directive-prologue/14.1-5gs.js 0 additions, 2 deletionstest/language/directive-prologue/14.1-5gs.js
Loading
Please register or sign in to comment