@babel/test262-stream 1.4.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE-BOCOUP.txt +27 -0
- package/LICENSE.txt +1 -1
- package/README.md +11 -1
- package/lib/builder.js +50 -15
- package/lib/compile.js +14 -11
- package/lib/create-scenarios.js +41 -10
- package/lib/index.d.ts +137 -0
- package/lib/index.js +202 -58
- package/lib/test-file.js +34 -11
- package/package.json +18 -9
- package/.jshintignore +0 -2
- package/.jshintrc +0 -6
- package/.travis.yml +0 -5
- package/CONTRIBUTING.md +0 -37
- package/test/collateral/invalid-missing-harness/fake-test262/test/a-test-file.js +0 -16
- package/test/collateral/invalid-version-other-accepted/fake-test262/harness/assert.js +0 -17
- package/test/collateral/invalid-version-other-accepted/fake-test262/harness/doneprintHandle.js +0 -6
- package/test/collateral/invalid-version-other-accepted/fake-test262/harness/sta.js +0 -12
- package/test/collateral/invalid-version-other-accepted/fake-test262/package.json +0 -3
- package/test/collateral/invalid-version-other-accepted/fake-test262/test/strict.js +0 -9
- package/test/collateral/invalid-version-unsupported/fake-test262/harness/assert.js +0 -17
- package/test/collateral/invalid-version-unsupported/fake-test262/harness/doneprintHandle.js +0 -6
- package/test/collateral/invalid-version-unsupported/fake-test262/harness/sta.js +0 -12
- package/test/collateral/invalid-version-unsupported/fake-test262/package.json +0 -3
- package/test/collateral/invalid-version-unsupported/fake-test262/test/strict.js +0 -9
- package/test/collateral/valid-default/expected-content/test/asyncNegative_default.js +0 -49
- package/test/collateral/valid-default/expected-content/test/asyncNegative_strict_mode.js +0 -50
- package/test/collateral/valid-default/expected-content/test/async_default.js +0 -48
- package/test/collateral/valid-default/expected-content/test/async_strict_mode.js +0 -49
- package/test/collateral/valid-default/expected-content/test/bothStrict_default.js +0 -46
- package/test/collateral/valid-default/expected-content/test/bothStrict_strict_mode.js +0 -47
- package/test/collateral/valid-default/expected-content/test/error_default.js +0 -39
- package/test/collateral/valid-default/expected-content/test/error_strict_mode.js +0 -40
- package/test/collateral/valid-default/expected-content/test/module_default.js +0 -37
- package/test/collateral/valid-default/expected-content/test/module_strict_mode.js +0 -38
- package/test/collateral/valid-default/expected-content/test/negative-empty_default.js +0 -37
- package/test/collateral/valid-default/expected-content/test/negative-empty_strict_mode.js +0 -38
- package/test/collateral/valid-default/expected-content/test/noStrict_default.js +0 -36
- package/test/collateral/valid-default/expected-content/test/rawNoStrict_default.js +0 -14
- package/test/collateral/valid-default/expected-content/test/rawStrict_default.js +0 -15
- package/test/collateral/valid-default/expected-content/test/strict_strict_mode.js +0 -41
- package/test/collateral/valid-default/expected-metadata/test/asyncNegative_default.json +0 -22
- package/test/collateral/valid-default/expected-metadata/test/asyncNegative_strict_mode.json +0 -22
- package/test/collateral/valid-default/expected-metadata/test/async_default.json +0 -18
- package/test/collateral/valid-default/expected-metadata/test/async_strict_mode.json +0 -18
- package/test/collateral/valid-default/expected-metadata/test/bothStrict_default.json +0 -24
- package/test/collateral/valid-default/expected-metadata/test/bothStrict_strict_mode.json +0 -24
- package/test/collateral/valid-default/expected-metadata/test/error_default.json +0 -19
- package/test/collateral/valid-default/expected-metadata/test/error_strict_mode.json +0 -19
- package/test/collateral/valid-default/expected-metadata/test/module_default.json +0 -17
- package/test/collateral/valid-default/expected-metadata/test/module_strict_mode.json +0 -17
- package/test/collateral/valid-default/expected-metadata/test/negative-empty_default.json +0 -19
- package/test/collateral/valid-default/expected-metadata/test/negative-empty_strict_mode.json +0 -19
- package/test/collateral/valid-default/expected-metadata/test/noStrict_default.json +0 -17
- package/test/collateral/valid-default/expected-metadata/test/rawNoStrict_default.json +0 -14
- package/test/collateral/valid-default/expected-metadata/test/rawStrict_default.json +0 -14
- package/test/collateral/valid-default/expected-metadata/test/strict_strict_mode.json +0 -21
- package/test/collateral/valid-default/fake-test262/harness/assert.js +0 -17
- package/test/collateral/valid-default/fake-test262/harness/doneprintHandle.js +0 -6
- package/test/collateral/valid-default/fake-test262/harness/sta.js +0 -12
- package/test/collateral/valid-default/fake-test262/test/async.js +0 -10
- package/test/collateral/valid-default/fake-test262/test/asyncNegative.js +0 -11
- package/test/collateral/valid-default/fake-test262/test/bothStrict.js +0 -15
- package/test/collateral/valid-default/fake-test262/test/error.js +0 -8
- package/test/collateral/valid-default/fake-test262/test/module.js +0 -6
- package/test/collateral/valid-default/fake-test262/test/module_FIXTURE.js +0 -2
- package/test/collateral/valid-default/fake-test262/test/negative-empty.js +0 -6
- package/test/collateral/valid-default/fake-test262/test/noStrict.js +0 -5
- package/test/collateral/valid-default/fake-test262/test/rawNoStrict.js +0 -14
- package/test/collateral/valid-default/fake-test262/test/rawStrict.js +0 -15
- package/test/collateral/valid-default/fake-test262/test/strict.js +0 -9
- package/test/collateral/valid-extra-files/expected-content/test/bothStrict_default.js +0 -46
- package/test/collateral/valid-extra-files/expected-content/test/bothStrict_strict_mode.js +0 -47
- package/test/collateral/valid-extra-files/expected-metadata/test/bothStrict_default.json +0 -24
- package/test/collateral/valid-extra-files/expected-metadata/test/bothStrict_strict_mode.json +0 -24
- package/test/collateral/valid-extra-files/fake-test262/harness/assert.js +0 -17
- package/test/collateral/valid-extra-files/fake-test262/harness/doneprintHandle.js +0 -6
- package/test/collateral/valid-extra-files/fake-test262/harness/sta.js +0 -12
- package/test/collateral/valid-extra-files/fake-test262/test/bothStrict.js +0 -15
- package/test/collateral/valid-extra-files/fake-test262/test/zzz-0_FIXTURE.js +0 -2
- package/test/collateral/valid-extra-files/fake-test262/test/zzz-1_FIXTURE.js +0 -2
- package/test/collateral/valid-extra-files/fake-test262/test/zzz-2_FIXTURE.js +0 -2
- package/test/collateral/valid-extra-files/fake-test262/test/zzz-3_FIXTURE.js +0 -2
- package/test/collateral/valid-extra-files/fake-test262/test/zzz-4_FIXTURE.js +0 -2
- package/test/collateral/valid-extra-files/fake-test262/test/zzz-5_FIXTURE.js +0 -2
- package/test/collateral/valid-extra-files/fake-test262/test/zzz-6_FIXTURE.js +0 -2
- package/test/collateral/valid-extra-files/fake-test262/test/zzz-7_FIXTURE.js +0 -2
- package/test/collateral/valid-extra-files/fake-test262/test/zzz-8_FIXTURE.js +0 -2
- package/test/collateral/valid-extra-files/fake-test262/test/zzz-9_FIXTURE.txt +0 -2
- package/test/collateral/valid-insertionindex-with-copyright/expected-content/test/raw_default.js +0 -15
- package/test/collateral/valid-insertionindex-with-copyright/expected-content/test/runtime_default.js +0 -38
- package/test/collateral/valid-insertionindex-with-copyright/expected-content/test/runtime_strict_mode.js +0 -39
- package/test/collateral/valid-insertionindex-with-copyright/expected-metadata/test/raw_default.json +0 -14
- package/test/collateral/valid-insertionindex-with-copyright/expected-metadata/test/runtime_default.json +0 -15
- package/test/collateral/valid-insertionindex-with-copyright/expected-metadata/test/runtime_strict_mode.json +0 -15
- package/test/collateral/valid-insertionindex-with-copyright/fake-test262/harness/assert.js +0 -17
- package/test/collateral/valid-insertionindex-with-copyright/fake-test262/harness/sta.js +0 -12
- package/test/collateral/valid-insertionindex-with-copyright/fake-test262/test/raw.js +0 -15
- package/test/collateral/valid-insertionindex-with-copyright/fake-test262/test/runtime.js +0 -7
- package/test/collateral/valid-omit-runtime/expected-content/test/asyncNegative_default.js +0 -11
- package/test/collateral/valid-omit-runtime/expected-content/test/asyncNegative_strict_mode.js +0 -12
- package/test/collateral/valid-omit-runtime/expected-content/test/async_default.js +0 -10
- package/test/collateral/valid-omit-runtime/expected-content/test/async_strict_mode.js +0 -11
- package/test/collateral/valid-omit-runtime/expected-content/test/bothStrict_default.js +0 -15
- package/test/collateral/valid-omit-runtime/expected-content/test/bothStrict_strict_mode.js +0 -16
- package/test/collateral/valid-omit-runtime/expected-content/test/error_default.js +0 -8
- package/test/collateral/valid-omit-runtime/expected-content/test/error_strict_mode.js +0 -9
- package/test/collateral/valid-omit-runtime/expected-content/test/module_default.js +0 -6
- package/test/collateral/valid-omit-runtime/expected-content/test/module_strict_mode.js +0 -7
- package/test/collateral/valid-omit-runtime/expected-content/test/negative-empty_default.js +0 -6
- package/test/collateral/valid-omit-runtime/expected-content/test/negative-empty_strict_mode.js +0 -7
- package/test/collateral/valid-omit-runtime/expected-content/test/noStrict_default.js +0 -5
- package/test/collateral/valid-omit-runtime/expected-content/test/rawNoStrict_default.js +0 -14
- package/test/collateral/valid-omit-runtime/expected-content/test/rawStrict_default.js +0 -15
- package/test/collateral/valid-omit-runtime/expected-content/test/strict_strict_mode.js +0 -10
- package/test/collateral/valid-omit-runtime/expected-metadata/test/asyncNegative_default.json +0 -18
- package/test/collateral/valid-omit-runtime/expected-metadata/test/asyncNegative_strict_mode.json +0 -18
- package/test/collateral/valid-omit-runtime/expected-metadata/test/async_default.json +0 -14
- package/test/collateral/valid-omit-runtime/expected-metadata/test/async_strict_mode.json +0 -14
- package/test/collateral/valid-omit-runtime/expected-metadata/test/bothStrict_default.json +0 -21
- package/test/collateral/valid-omit-runtime/expected-metadata/test/bothStrict_strict_mode.json +0 -21
- package/test/collateral/valid-omit-runtime/expected-metadata/test/error_default.json +0 -16
- package/test/collateral/valid-omit-runtime/expected-metadata/test/error_strict_mode.json +0 -16
- package/test/collateral/valid-omit-runtime/expected-metadata/test/module_default.json +0 -14
- package/test/collateral/valid-omit-runtime/expected-metadata/test/module_strict_mode.json +0 -14
- package/test/collateral/valid-omit-runtime/expected-metadata/test/negative-empty_default.json +0 -16
- package/test/collateral/valid-omit-runtime/expected-metadata/test/negative-empty_strict_mode.json +0 -16
- package/test/collateral/valid-omit-runtime/expected-metadata/test/noStrict_default.json +0 -14
- package/test/collateral/valid-omit-runtime/expected-metadata/test/rawNoStrict_default.json +0 -14
- package/test/collateral/valid-omit-runtime/expected-metadata/test/rawStrict_default.json +0 -14
- package/test/collateral/valid-omit-runtime/expected-metadata/test/strict_strict_mode.json +0 -18
- package/test/collateral/valid-omit-runtime/fake-test262/harness/assert.js +0 -17
- package/test/collateral/valid-omit-runtime/fake-test262/harness/doneprintHandle.js +0 -6
- package/test/collateral/valid-omit-runtime/fake-test262/harness/sta.js +0 -12
- package/test/collateral/valid-omit-runtime/fake-test262/test/async.js +0 -10
- package/test/collateral/valid-omit-runtime/fake-test262/test/asyncNegative.js +0 -11
- package/test/collateral/valid-omit-runtime/fake-test262/test/bothStrict.js +0 -15
- package/test/collateral/valid-omit-runtime/fake-test262/test/error.js +0 -8
- package/test/collateral/valid-omit-runtime/fake-test262/test/module.js +0 -6
- package/test/collateral/valid-omit-runtime/fake-test262/test/module_FIXTURE.js +0 -2
- package/test/collateral/valid-omit-runtime/fake-test262/test/negative-empty.js +0 -6
- package/test/collateral/valid-omit-runtime/fake-test262/test/noStrict.js +0 -5
- package/test/collateral/valid-omit-runtime/fake-test262/test/rawNoStrict.js +0 -14
- package/test/collateral/valid-omit-runtime/fake-test262/test/rawStrict.js +0 -15
- package/test/collateral/valid-omit-runtime/fake-test262/test/strict.js +0 -9
- package/test/collateral/valid-version-ignored/expected-content/test/strict_strict_mode.js +0 -41
- package/test/collateral/valid-version-ignored/expected-metadata/test/strict_strict_mode.json +0 -21
- package/test/collateral/valid-version-ignored/fake-test262/harness/assert.js +0 -17
- package/test/collateral/valid-version-ignored/fake-test262/harness/doneprintHandle.js +0 -6
- package/test/collateral/valid-version-ignored/fake-test262/harness/sta.js +0 -12
- package/test/collateral/valid-version-ignored/fake-test262/package.json +0 -3
- package/test/collateral/valid-version-ignored/fake-test262/test/strict.js +0 -9
- package/test/collateral/valid-version-supported/expected-content/test/strict_strict_mode.js +0 -41
- package/test/collateral/valid-version-supported/expected-metadata/test/strict_strict_mode.json +0 -21
- package/test/collateral/valid-version-supported/fake-test262/harness/assert.js +0 -17
- package/test/collateral/valid-version-supported/fake-test262/harness/doneprintHandle.js +0 -6
- package/test/collateral/valid-version-supported/fake-test262/harness/sta.js +0 -12
- package/test/collateral/valid-version-supported/fake-test262/package.json +0 -3
- package/test/collateral/valid-version-supported/fake-test262/test/strict.js +0 -9
- package/test/collateral/valid-with-hashbang/expected-content/test/missing-raw-flag_default.js +0 -44
- package/test/collateral/valid-with-hashbang/expected-content/test/missing-raw-flag_strict_mode.js +0 -45
- package/test/collateral/valid-with-hashbang/expected-content/test/raw-with-ls-and-license-on-same-line_default.js +0 -20
- package/test/collateral/valid-with-hashbang/expected-content/test/raw-with-ls-multiline-block_default.js +0 -18
- package/test/collateral/valid-with-hashbang/expected-content/test/raw-with-ls_default.js +0 -17
- package/test/collateral/valid-with-hashbang/expected-content/test/raw-with-ps-and-license-on-same-line_default.js +0 -20
- package/test/collateral/valid-with-hashbang/expected-content/test/raw-with-ps-multiline-block_default.js +0 -18
- package/test/collateral/valid-with-hashbang/expected-content/test/raw-with-ps_default.js +0 -17
- package/test/collateral/valid-with-hashbang/expected-content/test/rawWithLicense_default.js +0 -21
- package/test/collateral/valid-with-hashbang/expected-content/test/raw_default.js +0 -17
- package/test/collateral/valid-with-hashbang/expected-metadata/test/missing-raw-flag_default.json +0 -22
- package/test/collateral/valid-with-hashbang/expected-metadata/test/missing-raw-flag_strict_mode.json +0 -22
- package/test/collateral/valid-with-hashbang/expected-metadata/test/raw-with-ls-and-license-on-same-line_default.json +0 -21
- package/test/collateral/valid-with-hashbang/expected-metadata/test/raw-with-ls-multiline-block_default.json +0 -21
- package/test/collateral/valid-with-hashbang/expected-metadata/test/raw-with-ls_default.json +0 -21
- package/test/collateral/valid-with-hashbang/expected-metadata/test/raw-with-ps-and-license-on-same-line_default.json +0 -21
- package/test/collateral/valid-with-hashbang/expected-metadata/test/raw-with-ps-multiline-block_default.json +0 -21
- package/test/collateral/valid-with-hashbang/expected-metadata/test/raw-with-ps_default.json +0 -21
- package/test/collateral/valid-with-hashbang/expected-metadata/test/rawWithLicense_default.json +0 -21
- package/test/collateral/valid-with-hashbang/expected-metadata/test/raw_default.json +0 -21
- package/test/collateral/valid-with-hashbang/fake-test262/harness/assert.js +0 -17
- package/test/collateral/valid-with-hashbang/fake-test262/harness/doneprintHandle.js +0 -6
- package/test/collateral/valid-with-hashbang/fake-test262/harness/sta.js +0 -12
- package/test/collateral/valid-with-hashbang/fake-test262/test/missing-raw-flag.js +0 -13
- package/test/collateral/valid-with-hashbang/fake-test262/test/raw-with-ls-and-license-on-same-line.js +0 -20
- package/test/collateral/valid-with-hashbang/fake-test262/test/raw-with-ls-multiline-block.js +0 -18
- package/test/collateral/valid-with-hashbang/fake-test262/test/raw-with-ls.js +0 -17
- package/test/collateral/valid-with-hashbang/fake-test262/test/raw-with-ps-and-license-on-same-line.js +0 -20
- package/test/collateral/valid-with-hashbang/fake-test262/test/raw-with-ps-multiline-block.js +0 -18
- package/test/collateral/valid-with-hashbang/fake-test262/test/raw-with-ps.js +0 -17
- package/test/collateral/valid-with-hashbang/fake-test262/test/raw.js +0 -17
- package/test/collateral/valid-with-hashbang/fake-test262/test/rawWithLicense.js +0 -21
- package/test/collateral/valid-with-includes/custom-includes/assert.js +0 -17
- package/test/collateral/valid-with-includes/custom-includes/doneprintHandle.js +0 -9
- package/test/collateral/valid-with-includes/custom-includes/sta.js +0 -13
- package/test/collateral/valid-with-includes/expected-content/test/async_default.js +0 -52
- package/test/collateral/valid-with-includes/expected-content/test/async_strict_mode.js +0 -53
- package/test/collateral/valid-with-includes/expected-content/test/bothStrict_default.js +0 -47
- package/test/collateral/valid-with-includes/expected-content/test/bothStrict_strict_mode.js +0 -48
- package/test/collateral/valid-with-includes/expected-metadata/test/async_default.json +0 -18
- package/test/collateral/valid-with-includes/expected-metadata/test/async_strict_mode.json +0 -18
- package/test/collateral/valid-with-includes/expected-metadata/test/bothStrict_default.json +0 -24
- package/test/collateral/valid-with-includes/expected-metadata/test/bothStrict_strict_mode.json +0 -24
- package/test/collateral/valid-with-includes/fake-test262/harness/assert.js +0 -17
- package/test/collateral/valid-with-includes/fake-test262/harness/doneprintHandle.js +0 -6
- package/test/collateral/valid-with-includes/fake-test262/test/async.js +0 -10
- package/test/collateral/valid-with-includes/fake-test262/test/bothStrict.js +0 -15
- package/test/collateral/valid-with-paths/expected-content/test/async/asyncNegative_default.js +0 -49
- package/test/collateral/valid-with-paths/expected-content/test/async/asyncNegative_strict_mode.js +0 -50
- package/test/collateral/valid-with-paths/expected-content/test/async/async_default.js +0 -48
- package/test/collateral/valid-with-paths/expected-content/test/async/async_strict_mode.js +0 -49
- package/test/collateral/valid-with-paths/expected-content/test/bothStrict_default.js +0 -46
- package/test/collateral/valid-with-paths/expected-content/test/bothStrict_strict_mode.js +0 -47
- package/test/collateral/valid-with-paths/expected-content/test/strict/no/noStrict_default.js +0 -36
- package/test/collateral/valid-with-paths/expected-content/test/strict/no/rawNoStrict_default.js +0 -14
- package/test/collateral/valid-with-paths/expected-metadata/test/async/asyncNegative_default.json +0 -22
- package/test/collateral/valid-with-paths/expected-metadata/test/async/asyncNegative_strict_mode.json +0 -22
- package/test/collateral/valid-with-paths/expected-metadata/test/async/async_default.json +0 -18
- package/test/collateral/valid-with-paths/expected-metadata/test/async/async_strict_mode.json +0 -18
- package/test/collateral/valid-with-paths/expected-metadata/test/bothStrict_default.json +0 -24
- package/test/collateral/valid-with-paths/expected-metadata/test/bothStrict_strict_mode.json +0 -24
- package/test/collateral/valid-with-paths/expected-metadata/test/strict/no/noStrict_default.json +0 -17
- package/test/collateral/valid-with-paths/expected-metadata/test/strict/no/rawNoStrict_default.json +0 -14
- package/test/collateral/valid-with-paths/fake-test262/harness/assert.js +0 -17
- package/test/collateral/valid-with-paths/fake-test262/harness/doneprintHandle.js +0 -6
- package/test/collateral/valid-with-paths/fake-test262/harness/sta.js +0 -12
- package/test/collateral/valid-with-paths/fake-test262/test/async/async.js +0 -10
- package/test/collateral/valid-with-paths/fake-test262/test/async/asyncNegative.js +0 -11
- package/test/collateral/valid-with-paths/fake-test262/test/bothStrict.js +0 -15
- package/test/collateral/valid-with-paths/fake-test262/test/error.js +0 -8
- package/test/collateral/valid-with-paths/fake-test262/test/negative-empty.js +0 -6
- package/test/collateral/valid-with-paths/fake-test262/test/strict/no/noStrict.js +0 -5
- package/test/collateral/valid-with-paths/fake-test262/test/strict/no/rawNoStrict.js +0 -14
- package/test/collateral/valid-with-paths/fake-test262/test/strict/rawStrict.js +0 -15
- package/test/collateral/valid-with-paths/fake-test262/test/strict/strict.js +0 -9
- package/test/test.js +0 -319
package/test/collateral/valid-with-hashbang/expected-metadata/test/missing-raw-flag_strict_mode.json
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"file": "test/missing-raw-flag.js",
|
|
3
|
-
"contents": "(The value of this property is over-sized, so it is validated independently.)",
|
|
4
|
-
"attrs": {
|
|
5
|
-
"description": "Missing raw flag will result in the harness/runtime includes being added, however doing so will produce invalid test code.\n (Strict Mode)",
|
|
6
|
-
"features": [
|
|
7
|
-
"hashbang"
|
|
8
|
-
],
|
|
9
|
-
"negative": {
|
|
10
|
-
"phase": "parse",
|
|
11
|
-
"type": "SyntaxError"
|
|
12
|
-
},
|
|
13
|
-
"flags": {},
|
|
14
|
-
"includes": [
|
|
15
|
-
"assert.js",
|
|
16
|
-
"sta.js"
|
|
17
|
-
]
|
|
18
|
-
},
|
|
19
|
-
"copyright": "",
|
|
20
|
-
"scenario": "strict mode",
|
|
21
|
-
"insertionIndex": 453
|
|
22
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"file": "test/raw-with-ls-and-license-on-same-line.js",
|
|
3
|
-
"contents": "(The value of this property is over-sized, so it is validated independently.)",
|
|
4
|
-
"attrs": {
|
|
5
|
-
"description": "Has a license after the hashbang, on same line. There is an <LS> between them.\n",
|
|
6
|
-
"features": [
|
|
7
|
-
"hashbang"
|
|
8
|
-
],
|
|
9
|
-
"flags": {
|
|
10
|
-
"raw": true
|
|
11
|
-
},
|
|
12
|
-
"negative": {
|
|
13
|
-
"phase": "runtime",
|
|
14
|
-
"type": "ReferenceError"
|
|
15
|
-
},
|
|
16
|
-
"includes": []
|
|
17
|
-
},
|
|
18
|
-
"copyright": "// Copyright (c) 2019, Bocoup LLC. All rights reserved.",
|
|
19
|
-
"scenario": "default",
|
|
20
|
-
"insertionIndex": -1
|
|
21
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"file": "test/raw-with-ls-multiline-block.js",
|
|
3
|
-
"contents": "(The value of this property is over-sized, so it is validated independently.)",
|
|
4
|
-
"attrs": {
|
|
5
|
-
"description": "No license after the hashbang. Contents should have hashbang",
|
|
6
|
-
"features": [
|
|
7
|
-
"hashbang"
|
|
8
|
-
],
|
|
9
|
-
"flags": {
|
|
10
|
-
"raw": true
|
|
11
|
-
},
|
|
12
|
-
"negative": {
|
|
13
|
-
"phase": "runtime",
|
|
14
|
-
"type": "ReferenceError"
|
|
15
|
-
},
|
|
16
|
-
"includes": []
|
|
17
|
-
},
|
|
18
|
-
"copyright": "",
|
|
19
|
-
"scenario": "default",
|
|
20
|
-
"insertionIndex": -1
|
|
21
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"file": "test/raw-with-ls.js",
|
|
3
|
-
"contents": "(The value of this property is over-sized, so it is validated independently.)",
|
|
4
|
-
"attrs": {
|
|
5
|
-
"description": "No license after the hashbang. Contents should have hashbang",
|
|
6
|
-
"features": [
|
|
7
|
-
"hashbang"
|
|
8
|
-
],
|
|
9
|
-
"flags": {
|
|
10
|
-
"raw": true
|
|
11
|
-
},
|
|
12
|
-
"negative": {
|
|
13
|
-
"phase": "runtime",
|
|
14
|
-
"type": "ReferenceError"
|
|
15
|
-
},
|
|
16
|
-
"includes": []
|
|
17
|
-
},
|
|
18
|
-
"copyright": "",
|
|
19
|
-
"scenario": "default",
|
|
20
|
-
"insertionIndex": -1
|
|
21
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"file": "test/raw-with-ps-and-license-on-same-line.js",
|
|
3
|
-
"contents": "(The value of this property is over-sized, so it is validated independently.)",
|
|
4
|
-
"attrs": {
|
|
5
|
-
"description": "Has a license after the hashbang, on same line. There is a <PS> between them.\n",
|
|
6
|
-
"features": [
|
|
7
|
-
"hashbang"
|
|
8
|
-
],
|
|
9
|
-
"flags": {
|
|
10
|
-
"raw": true
|
|
11
|
-
},
|
|
12
|
-
"negative": {
|
|
13
|
-
"phase": "runtime",
|
|
14
|
-
"type": "ReferenceError"
|
|
15
|
-
},
|
|
16
|
-
"includes": []
|
|
17
|
-
},
|
|
18
|
-
"copyright": "// Copyright (c) 2019, Bocoup LLC. All rights reserved.",
|
|
19
|
-
"scenario": "default",
|
|
20
|
-
"insertionIndex": -1
|
|
21
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"file": "test/raw-with-ps-multiline-block.js",
|
|
3
|
-
"contents": "(The value of this property is over-sized, so it is validated independently.)",
|
|
4
|
-
"attrs": {
|
|
5
|
-
"description": "Multiline block, no license after the hashbang. Contents should have hashbang",
|
|
6
|
-
"features": [
|
|
7
|
-
"hashbang"
|
|
8
|
-
],
|
|
9
|
-
"flags": {
|
|
10
|
-
"raw": true
|
|
11
|
-
},
|
|
12
|
-
"negative": {
|
|
13
|
-
"phase": "runtime",
|
|
14
|
-
"type": "ReferenceError"
|
|
15
|
-
},
|
|
16
|
-
"includes": []
|
|
17
|
-
},
|
|
18
|
-
"copyright": "",
|
|
19
|
-
"scenario": "default",
|
|
20
|
-
"insertionIndex": -1
|
|
21
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"file": "test/raw-with-ps.js",
|
|
3
|
-
"contents": "(The value of this property is over-sized, so it is validated independently.)",
|
|
4
|
-
"attrs": {
|
|
5
|
-
"description": "No license after the hashbang. Contents should have hashbang",
|
|
6
|
-
"features": [
|
|
7
|
-
"hashbang"
|
|
8
|
-
],
|
|
9
|
-
"flags": {
|
|
10
|
-
"raw": true
|
|
11
|
-
},
|
|
12
|
-
"negative": {
|
|
13
|
-
"phase": "runtime",
|
|
14
|
-
"type": "ReferenceError"
|
|
15
|
-
},
|
|
16
|
-
"includes": []
|
|
17
|
-
},
|
|
18
|
-
"copyright": "",
|
|
19
|
-
"scenario": "default",
|
|
20
|
-
"insertionIndex": -1
|
|
21
|
-
}
|
package/test/collateral/valid-with-hashbang/expected-metadata/test/rawWithLicense_default.json
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"file": "test/rawWithLicense.js",
|
|
3
|
-
"contents": "(The value of this property is over-sized, so it is validated independently.)",
|
|
4
|
-
"attrs": {
|
|
5
|
-
"description": "Has a license after the hashbang. Contents should have hashbang",
|
|
6
|
-
"features": [
|
|
7
|
-
"hashbang"
|
|
8
|
-
],
|
|
9
|
-
"flags": {
|
|
10
|
-
"raw": true
|
|
11
|
-
},
|
|
12
|
-
"negative": {
|
|
13
|
-
"phase": "runtime",
|
|
14
|
-
"type": "ReferenceError"
|
|
15
|
-
},
|
|
16
|
-
"includes": []
|
|
17
|
-
},
|
|
18
|
-
"copyright": "// Copyright (c) 2019, Bocoup LLC. All rights reserved.",
|
|
19
|
-
"scenario": "default",
|
|
20
|
-
"insertionIndex": -1
|
|
21
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"file": "test/raw.js",
|
|
3
|
-
"contents": "(The value of this property is over-sized, so it is validated independently.)",
|
|
4
|
-
"attrs": {
|
|
5
|
-
"description": "No license after the hashbang. Contents should have hashbang",
|
|
6
|
-
"features": [
|
|
7
|
-
"hashbang"
|
|
8
|
-
],
|
|
9
|
-
"flags": {
|
|
10
|
-
"raw": true
|
|
11
|
-
},
|
|
12
|
-
"negative": {
|
|
13
|
-
"phase": "runtime",
|
|
14
|
-
"type": "ReferenceError"
|
|
15
|
-
},
|
|
16
|
-
"includes": []
|
|
17
|
-
},
|
|
18
|
-
"copyright": "",
|
|
19
|
-
"scenario": "default",
|
|
20
|
-
"insertionIndex": -1
|
|
21
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
function Test262Error(message) {
|
|
2
|
-
this.message = message || "";
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
Test262Error.prototype.toString = function () {
|
|
6
|
-
return "Test262Error: " + this.message;
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
var $ERROR;
|
|
10
|
-
$ERROR = function $ERROR(message) {
|
|
11
|
-
throw new Test262Error(message);
|
|
12
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
#!
|
|
2
|
-
|
|
3
|
-
/*---
|
|
4
|
-
description: >
|
|
5
|
-
Missing raw flag will result in the harness/runtime includes being added,
|
|
6
|
-
however doing so will produce invalid test code.
|
|
7
|
-
features: [hashbang]
|
|
8
|
-
negative:
|
|
9
|
-
phase: parse
|
|
10
|
-
type: SyntaxError
|
|
11
|
-
---*/
|
|
12
|
-
|
|
13
|
-
throw "Test262: This statement should not be evaluated.";
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
#!LS
// Copyright (c) 2019, Bocoup LLC. All rights reserved.
|
|
2
|
-
// This code is governed by the BSD license found in the LICENSE file.
|
|
3
|
-
|
|
4
|
-
/*---
|
|
5
|
-
description: >
|
|
6
|
-
Has a license after the hashbang, on same line. There is an <LS> between them.
|
|
7
|
-
features: [hashbang]
|
|
8
|
-
flags: [raw]
|
|
9
|
-
negative:
|
|
10
|
-
phase: runtime
|
|
11
|
-
type: ReferenceError
|
|
12
|
-
---*/
|
|
13
|
-
var strict;
|
|
14
|
-
try { x = 1; strict = false;} catch(e) { strict = true }
|
|
15
|
-
|
|
16
|
-
if(strict) {
|
|
17
|
-
y = 1;
|
|
18
|
-
} else {
|
|
19
|
-
throw new ReferenceError();
|
|
20
|
-
}
|
package/test/collateral/valid-with-hashbang/fake-test262/test/raw-with-ls-multiline-block.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
#!LS
{// a U+2028 <LS> LINE SEPARATOR is to the immediate left of "{//"
|
|
2
|
-
}
|
|
3
|
-
/*---
|
|
4
|
-
description: No license after the hashbang. Contents should have hashbang
|
|
5
|
-
features: [hashbang]
|
|
6
|
-
flags: [raw]
|
|
7
|
-
negative:
|
|
8
|
-
phase: runtime
|
|
9
|
-
type: ReferenceError
|
|
10
|
-
---*/
|
|
11
|
-
var strict;
|
|
12
|
-
try { x = 1; strict = false;} catch(e) { strict = true }
|
|
13
|
-
|
|
14
|
-
if(strict) {
|
|
15
|
-
y = 1;
|
|
16
|
-
} else {
|
|
17
|
-
throw new ReferenceError();
|
|
18
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
#!LS
// a U+2028 <LS> LINE SEPARATOR is to the immediate left of "//"
|
|
2
|
-
/*---
|
|
3
|
-
description: No license after the hashbang. Contents should have hashbang
|
|
4
|
-
features: [hashbang]
|
|
5
|
-
flags: [raw]
|
|
6
|
-
negative:
|
|
7
|
-
phase: runtime
|
|
8
|
-
type: ReferenceError
|
|
9
|
-
---*/
|
|
10
|
-
var strict;
|
|
11
|
-
try { x = 1; strict = false;} catch(e) { strict = true }
|
|
12
|
-
|
|
13
|
-
if(strict) {
|
|
14
|
-
y = 1;
|
|
15
|
-
} else {
|
|
16
|
-
throw new ReferenceError();
|
|
17
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
#!PS
// Copyright (c) 2019, Bocoup LLC. All rights reserved.
|
|
2
|
-
// This code is governed by the BSD license found in the LICENSE file.
|
|
3
|
-
|
|
4
|
-
/*---
|
|
5
|
-
description: >
|
|
6
|
-
Has a license after the hashbang, on same line. There is a <PS> between them.
|
|
7
|
-
features: [hashbang]
|
|
8
|
-
flags: [raw]
|
|
9
|
-
negative:
|
|
10
|
-
phase: runtime
|
|
11
|
-
type: ReferenceError
|
|
12
|
-
---*/
|
|
13
|
-
var strict;
|
|
14
|
-
try { x = 1; strict = false;} catch(e) { strict = true }
|
|
15
|
-
|
|
16
|
-
if(strict) {
|
|
17
|
-
y = 1;
|
|
18
|
-
} else {
|
|
19
|
-
throw new ReferenceError();
|
|
20
|
-
}
|
package/test/collateral/valid-with-hashbang/fake-test262/test/raw-with-ps-multiline-block.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
#!PS
{// a U+2029 <PS> PARAGRAPH SEPARATOR is to the immediate left of "{//"
|
|
2
|
-
}
|
|
3
|
-
/*---
|
|
4
|
-
description: Multiline block, no license after the hashbang. Contents should have hashbang
|
|
5
|
-
features: [hashbang]
|
|
6
|
-
flags: [raw]
|
|
7
|
-
negative:
|
|
8
|
-
phase: runtime
|
|
9
|
-
type: ReferenceError
|
|
10
|
-
---*/
|
|
11
|
-
var strict;
|
|
12
|
-
try { x = 1; strict = false;} catch(e) { strict = true }
|
|
13
|
-
|
|
14
|
-
if(strict) {
|
|
15
|
-
y = 1;
|
|
16
|
-
} else {
|
|
17
|
-
throw new ReferenceError();
|
|
18
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
#!PS
// a U+2029 <PS> PARAGRAPH SEPARATOR is to the immediate left of "//"
|
|
2
|
-
/*---
|
|
3
|
-
description: No license after the hashbang. Contents should have hashbang
|
|
4
|
-
features: [hashbang]
|
|
5
|
-
flags: [raw]
|
|
6
|
-
negative:
|
|
7
|
-
phase: runtime
|
|
8
|
-
type: ReferenceError
|
|
9
|
-
---*/
|
|
10
|
-
var strict;
|
|
11
|
-
try { x = 1; strict = false;} catch(e) { strict = true }
|
|
12
|
-
|
|
13
|
-
if(strict) {
|
|
14
|
-
y = 1;
|
|
15
|
-
} else {
|
|
16
|
-
throw new ReferenceError();
|
|
17
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
#!whatever
|
|
2
|
-
/*---
|
|
3
|
-
description: No license after the hashbang. Contents should have hashbang
|
|
4
|
-
features: [hashbang]
|
|
5
|
-
flags: [raw]
|
|
6
|
-
negative:
|
|
7
|
-
phase: runtime
|
|
8
|
-
type: ReferenceError
|
|
9
|
-
---*/
|
|
10
|
-
var strict;
|
|
11
|
-
try { x = 1; strict = false;} catch(e) { strict = true }
|
|
12
|
-
|
|
13
|
-
if(strict) {
|
|
14
|
-
y = 1;
|
|
15
|
-
} else {
|
|
16
|
-
throw new ReferenceError();
|
|
17
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!whatever
|
|
2
|
-
|
|
3
|
-
// Copyright (c) 2019, Bocoup LLC. All rights reserved.
|
|
4
|
-
// This code is governed by the BSD license found in the LICENSE file.
|
|
5
|
-
|
|
6
|
-
/*---
|
|
7
|
-
description: Has a license after the hashbang. Contents should have hashbang
|
|
8
|
-
features: [hashbang]
|
|
9
|
-
flags: [raw]
|
|
10
|
-
negative:
|
|
11
|
-
phase: runtime
|
|
12
|
-
type: ReferenceError
|
|
13
|
-
---*/
|
|
14
|
-
var strict;
|
|
15
|
-
try { x = 1; strict = false;} catch(e) { strict = true }
|
|
16
|
-
|
|
17
|
-
if(strict) {
|
|
18
|
-
y = 1;
|
|
19
|
-
} else {
|
|
20
|
-
throw new ReferenceError();
|
|
21
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// This is a custom implementation of `sta.js`
|
|
2
|
-
function Test262Error(message) {
|
|
3
|
-
this.message = message || '';
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
Test262Error.prototype.toString = function() {
|
|
7
|
-
return 'Test262Error: ' + this.message;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
var $ERROR = function $ERROR(message) {
|
|
11
|
-
throw new Test262Error(message);
|
|
12
|
-
};
|
|
13
|
-
// End custom implementation of `sta.js`
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
// This is a CUSTOM assert.js
|
|
2
|
-
|
|
3
|
-
'It has some CUSTOM contents';
|
|
4
|
-
|
|
5
|
-
/* that
|
|
6
|
-
*
|
|
7
|
-
* should
|
|
8
|
-
|
|
9
|
-
* not
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
`be ${ "modified" }`;
|
|
13
|
-
|
|
14
|
-
var including, CUSTOM, trailing;
|
|
15
|
-
whitespace: ;
|
|
16
|
-
|
|
17
|
-
void "end of CUSTOM assert.js";
|
|
18
|
-
|
|
19
|
-
// This is a custom implementation of `sta.js`
|
|
20
|
-
function Test262Error(message) {
|
|
21
|
-
this.message = message || '';
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
Test262Error.prototype.toString = function() {
|
|
25
|
-
return 'Test262Error: ' + this.message;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
var $ERROR = function $ERROR(message) {
|
|
29
|
-
throw new Test262Error(message);
|
|
30
|
-
};
|
|
31
|
-
// End custom implementation of `sta.js`
|
|
32
|
-
|
|
33
|
-
// This is a customized implementation of `doneprintHandle.js`
|
|
34
|
-
function $DONE(){
|
|
35
|
-
if(!arguments[0]) {
|
|
36
|
-
print('Test262:AsyncTestComplete');
|
|
37
|
-
} else {
|
|
38
|
-
print('Error: ' + arguments[0]);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
// End customized implementation of `doneprintHandle.js`
|
|
42
|
-
|
|
43
|
-
/*---
|
|
44
|
-
description: Async test
|
|
45
|
-
flags: [async]
|
|
46
|
-
---*/
|
|
47
|
-
|
|
48
|
-
var p = new Promise(function(resolve) {
|
|
49
|
-
resolve();
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
p.then($DONE, $DONE);
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// This is a CUSTOM assert.js
|
|
3
|
-
|
|
4
|
-
'It has some CUSTOM contents';
|
|
5
|
-
|
|
6
|
-
/* that
|
|
7
|
-
*
|
|
8
|
-
* should
|
|
9
|
-
|
|
10
|
-
* not
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
`be ${ "modified" }`;
|
|
14
|
-
|
|
15
|
-
var including, CUSTOM, trailing;
|
|
16
|
-
whitespace: ;
|
|
17
|
-
|
|
18
|
-
void "end of CUSTOM assert.js";
|
|
19
|
-
|
|
20
|
-
// This is a custom implementation of `sta.js`
|
|
21
|
-
function Test262Error(message) {
|
|
22
|
-
this.message = message || '';
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
Test262Error.prototype.toString = function() {
|
|
26
|
-
return 'Test262Error: ' + this.message;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
var $ERROR = function $ERROR(message) {
|
|
30
|
-
throw new Test262Error(message);
|
|
31
|
-
};
|
|
32
|
-
// End custom implementation of `sta.js`
|
|
33
|
-
|
|
34
|
-
// This is a customized implementation of `doneprintHandle.js`
|
|
35
|
-
function $DONE(){
|
|
36
|
-
if(!arguments[0]) {
|
|
37
|
-
print('Test262:AsyncTestComplete');
|
|
38
|
-
} else {
|
|
39
|
-
print('Error: ' + arguments[0]);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
// End customized implementation of `doneprintHandle.js`
|
|
43
|
-
|
|
44
|
-
/*---
|
|
45
|
-
description: Async test
|
|
46
|
-
flags: [async]
|
|
47
|
-
---*/
|
|
48
|
-
|
|
49
|
-
var p = new Promise(function(resolve) {
|
|
50
|
-
resolve();
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
p.then($DONE, $DONE);
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
// This is a CUSTOM assert.js
|
|
2
|
-
|
|
3
|
-
'It has some CUSTOM contents';
|
|
4
|
-
|
|
5
|
-
/* that
|
|
6
|
-
*
|
|
7
|
-
* should
|
|
8
|
-
|
|
9
|
-
* not
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
`be ${ "modified" }`;
|
|
13
|
-
|
|
14
|
-
var including, CUSTOM, trailing;
|
|
15
|
-
whitespace: ;
|
|
16
|
-
|
|
17
|
-
void "end of CUSTOM assert.js";
|
|
18
|
-
|
|
19
|
-
// This is a custom implementation of `sta.js`
|
|
20
|
-
function Test262Error(message) {
|
|
21
|
-
this.message = message || '';
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
Test262Error.prototype.toString = function() {
|
|
25
|
-
return 'Test262Error: ' + this.message;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
var $ERROR = function $ERROR(message) {
|
|
29
|
-
throw new Test262Error(message);
|
|
30
|
-
};
|
|
31
|
-
// End custom implementation of `sta.js`
|
|
32
|
-
|
|
33
|
-
/*---
|
|
34
|
-
description: Should test in both modes
|
|
35
|
-
features: [var, try, if]
|
|
36
|
-
negative:
|
|
37
|
-
phase: runtime
|
|
38
|
-
type: ReferenceError
|
|
39
|
-
---*/
|
|
40
|
-
var strict;
|
|
41
|
-
try { x = 1; strict = false;} catch(e) { strict = true }
|
|
42
|
-
|
|
43
|
-
if(strict) {
|
|
44
|
-
y = 1;
|
|
45
|
-
} else {
|
|
46
|
-
throw new ReferenceError();
|
|
47
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// This is a CUSTOM assert.js
|
|
3
|
-
|
|
4
|
-
'It has some CUSTOM contents';
|
|
5
|
-
|
|
6
|
-
/* that
|
|
7
|
-
*
|
|
8
|
-
* should
|
|
9
|
-
|
|
10
|
-
* not
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
`be ${ "modified" }`;
|
|
14
|
-
|
|
15
|
-
var including, CUSTOM, trailing;
|
|
16
|
-
whitespace: ;
|
|
17
|
-
|
|
18
|
-
void "end of CUSTOM assert.js";
|
|
19
|
-
|
|
20
|
-
// This is a custom implementation of `sta.js`
|
|
21
|
-
function Test262Error(message) {
|
|
22
|
-
this.message = message || '';
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
Test262Error.prototype.toString = function() {
|
|
26
|
-
return 'Test262Error: ' + this.message;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
var $ERROR = function $ERROR(message) {
|
|
30
|
-
throw new Test262Error(message);
|
|
31
|
-
};
|
|
32
|
-
// End custom implementation of `sta.js`
|
|
33
|
-
|
|
34
|
-
/*---
|
|
35
|
-
description: Should test in both modes
|
|
36
|
-
features: [var, try, if]
|
|
37
|
-
negative:
|
|
38
|
-
phase: runtime
|
|
39
|
-
type: ReferenceError
|
|
40
|
-
---*/
|
|
41
|
-
var strict;
|
|
42
|
-
try { x = 1; strict = false;} catch(e) { strict = true }
|
|
43
|
-
|
|
44
|
-
if(strict) {
|
|
45
|
-
y = 1;
|
|
46
|
-
} else {
|
|
47
|
-
throw new ReferenceError();
|
|
48
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"file": "test/async.js",
|
|
3
|
-
"contents": "(The value of this property is over-sized, so it is validated independently.)",
|
|
4
|
-
"attrs": {
|
|
5
|
-
"description": "Async test",
|
|
6
|
-
"flags": {
|
|
7
|
-
"async": true
|
|
8
|
-
},
|
|
9
|
-
"includes": [
|
|
10
|
-
"assert.js",
|
|
11
|
-
"sta.js",
|
|
12
|
-
"doneprintHandle.js"
|
|
13
|
-
]
|
|
14
|
-
},
|
|
15
|
-
"copyright": "",
|
|
16
|
-
"scenario": "default",
|
|
17
|
-
"insertionIndex": 804
|
|
18
|
-
}
|