From ab7617deddec3025848ac69ebdea6389b94e9a92 Mon Sep 17 00:00:00 2001 From: Mike Pennisi Date: Mon, 8 Jun 2015 15:35:16 -0400 Subject: 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" --- CONTRIBUTING.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CONTRIBUTING.md') diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 850b23b2c..042a9f633 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -117,6 +117,9 @@ This tag is for boolean properties associated with the test. - **`noStrict`** - only run the test in "sloppy" mode - **`module`** - interpret the source text as [module code](http://www.ecma-international.org/ecma-262/6.0/#sec-modules) +- **`raw`** - execute the test without any modification (no helpers will be + available); necessary to test the behavior of directive prologue; implies + `noStrict` #### features **features**: [list] -- cgit v1.2.1