Implement `raw` flag
Some tests involving the directive prologue are invalidated by source text transformations that insert executable code in the beginning of the script. Implement a `raw` flag that allows these tests to opt-out of this transformation. Update the relevant tests to use this flag (and remove references to globals only available when code is injected). Update the Python runner accordingly: - Do not run tests marked as "raw" in strict mode - Reject invalid test configurations Update the browser runner accordingly: - Do not modify the script body of tests marked as "raw"
Showing
- CONTRIBUTING.md 3 additions, 0 deletionsCONTRIBUTING.md
- test/language/directive-prologue/10.1.1-2gs.js 3 additions, 3 deletionstest/language/directive-prologue/10.1.1-2gs.js
- test/language/directive-prologue/10.1.1-5gs.js 3 additions, 3 deletionstest/language/directive-prologue/10.1.1-5gs.js
- test/language/directive-prologue/10.1.1-8gs.js 2 additions, 2 deletionstest/language/directive-prologue/10.1.1-8gs.js
- test/language/directive-prologue/14.1-4gs.js 2 additions, 2 deletionstest/language/directive-prologue/14.1-4gs.js
- test/language/directive-prologue/14.1-5gs.js 2 additions, 2 deletionstest/language/directive-prologue/14.1-5gs.js
- tools/packaging/test262.py 28 additions, 18 deletionstools/packaging/test262.py
- website/scripts/sth.js 2 additions, 1 deletionwebsite/scripts/sth.js
Loading
Please register or sign in to comment