@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
|
@@ -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 (Strict Mode)",
|
|
6
|
-
"flags": {
|
|
7
|
-
"async": true
|
|
8
|
-
},
|
|
9
|
-
"includes": [
|
|
10
|
-
"assert.js",
|
|
11
|
-
"sta.js",
|
|
12
|
-
"doneprintHandle.js"
|
|
13
|
-
]
|
|
14
|
-
},
|
|
15
|
-
"copyright": "",
|
|
16
|
-
"scenario": "strict mode",
|
|
17
|
-
"insertionIndex": 818
|
|
18
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"file": "test/bothStrict.js",
|
|
3
|
-
"contents": "(The value of this property is over-sized, so it is validated independently.)",
|
|
4
|
-
"attrs": {
|
|
5
|
-
"description": "Should test in both modes",
|
|
6
|
-
"features": [
|
|
7
|
-
"var",
|
|
8
|
-
"try",
|
|
9
|
-
"if"
|
|
10
|
-
],
|
|
11
|
-
"negative": {
|
|
12
|
-
"phase": "runtime",
|
|
13
|
-
"type": "ReferenceError"
|
|
14
|
-
},
|
|
15
|
-
"flags": {},
|
|
16
|
-
"includes": [
|
|
17
|
-
"assert.js",
|
|
18
|
-
"sta.js"
|
|
19
|
-
]
|
|
20
|
-
},
|
|
21
|
-
"copyright": "",
|
|
22
|
-
"scenario": "default",
|
|
23
|
-
"insertionIndex": 549
|
|
24
|
-
}
|
package/test/collateral/valid-with-includes/expected-metadata/test/bothStrict_strict_mode.json
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"file": "test/bothStrict.js",
|
|
3
|
-
"contents": "(The value of this property is over-sized, so it is validated independently.)",
|
|
4
|
-
"attrs": {
|
|
5
|
-
"description": "Should test in both modes (Strict Mode)",
|
|
6
|
-
"features": [
|
|
7
|
-
"var",
|
|
8
|
-
"try",
|
|
9
|
-
"if"
|
|
10
|
-
],
|
|
11
|
-
"negative": {
|
|
12
|
-
"phase": "runtime",
|
|
13
|
-
"type": "ReferenceError"
|
|
14
|
-
},
|
|
15
|
-
"flags": {},
|
|
16
|
-
"includes": [
|
|
17
|
-
"assert.js",
|
|
18
|
-
"sta.js"
|
|
19
|
-
]
|
|
20
|
-
},
|
|
21
|
-
"copyright": "",
|
|
22
|
-
"scenario": "strict mode",
|
|
23
|
-
"insertionIndex": 563
|
|
24
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/*---
|
|
2
|
-
description: Should test in both modes
|
|
3
|
-
features: [var, try, if]
|
|
4
|
-
negative:
|
|
5
|
-
phase: runtime
|
|
6
|
-
type: ReferenceError
|
|
7
|
-
---*/
|
|
8
|
-
var strict;
|
|
9
|
-
try { x = 1; strict = false;} catch(e) { strict = true }
|
|
10
|
-
|
|
11
|
-
if(strict) {
|
|
12
|
-
y = 1;
|
|
13
|
-
} else {
|
|
14
|
-
throw new ReferenceError();
|
|
15
|
-
}
|
package/test/collateral/valid-with-paths/expected-content/test/async/asyncNegative_default.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
// This is assert.js
|
|
2
|
-
|
|
3
|
-
'It has some contents';
|
|
4
|
-
|
|
5
|
-
/* that
|
|
6
|
-
*
|
|
7
|
-
* should
|
|
8
|
-
|
|
9
|
-
* not
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
`be ${ "modified" }`;
|
|
13
|
-
|
|
14
|
-
var including, trailing;
|
|
15
|
-
whitespace: ;
|
|
16
|
-
|
|
17
|
-
void "end of assert.js";
|
|
18
|
-
|
|
19
|
-
function Test262Error(message) {
|
|
20
|
-
this.message = message || "";
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
Test262Error.prototype.toString = function () {
|
|
24
|
-
return "Test262Error: " + this.message;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
var $ERROR;
|
|
28
|
-
$ERROR = function $ERROR(message) {
|
|
29
|
-
throw new Test262Error(message);
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
function $DONE(){
|
|
33
|
-
if(!arguments[0])
|
|
34
|
-
print('Test262:AsyncTestComplete');
|
|
35
|
-
else
|
|
36
|
-
print('Error: ' + arguments[0]);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/*---
|
|
40
|
-
description: Async negative test
|
|
41
|
-
negative:
|
|
42
|
-
phase: runtime
|
|
43
|
-
type: RangeError
|
|
44
|
-
flags: [async]
|
|
45
|
-
---*/
|
|
46
|
-
|
|
47
|
-
setTimeout(function() {
|
|
48
|
-
$DONE(new RangeError());
|
|
49
|
-
}, 1000);
|
package/test/collateral/valid-with-paths/expected-content/test/async/asyncNegative_strict_mode.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// This is assert.js
|
|
3
|
-
|
|
4
|
-
'It has some contents';
|
|
5
|
-
|
|
6
|
-
/* that
|
|
7
|
-
*
|
|
8
|
-
* should
|
|
9
|
-
|
|
10
|
-
* not
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
`be ${ "modified" }`;
|
|
14
|
-
|
|
15
|
-
var including, trailing;
|
|
16
|
-
whitespace: ;
|
|
17
|
-
|
|
18
|
-
void "end of assert.js";
|
|
19
|
-
|
|
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;
|
|
29
|
-
$ERROR = function $ERROR(message) {
|
|
30
|
-
throw new Test262Error(message);
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
function $DONE(){
|
|
34
|
-
if(!arguments[0])
|
|
35
|
-
print('Test262:AsyncTestComplete');
|
|
36
|
-
else
|
|
37
|
-
print('Error: ' + arguments[0]);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/*---
|
|
41
|
-
description: Async negative test
|
|
42
|
-
negative:
|
|
43
|
-
phase: runtime
|
|
44
|
-
type: RangeError
|
|
45
|
-
flags: [async]
|
|
46
|
-
---*/
|
|
47
|
-
|
|
48
|
-
setTimeout(function() {
|
|
49
|
-
$DONE(new RangeError());
|
|
50
|
-
}, 1000);
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
// This is assert.js
|
|
2
|
-
|
|
3
|
-
'It has some contents';
|
|
4
|
-
|
|
5
|
-
/* that
|
|
6
|
-
*
|
|
7
|
-
* should
|
|
8
|
-
|
|
9
|
-
* not
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
`be ${ "modified" }`;
|
|
13
|
-
|
|
14
|
-
var including, trailing;
|
|
15
|
-
whitespace: ;
|
|
16
|
-
|
|
17
|
-
void "end of assert.js";
|
|
18
|
-
|
|
19
|
-
function Test262Error(message) {
|
|
20
|
-
this.message = message || "";
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
Test262Error.prototype.toString = function () {
|
|
24
|
-
return "Test262Error: " + this.message;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
var $ERROR;
|
|
28
|
-
$ERROR = function $ERROR(message) {
|
|
29
|
-
throw new Test262Error(message);
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
function $DONE(){
|
|
33
|
-
if(!arguments[0])
|
|
34
|
-
print('Test262:AsyncTestComplete');
|
|
35
|
-
else
|
|
36
|
-
print('Error: ' + arguments[0]);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/*---
|
|
40
|
-
description: Async test
|
|
41
|
-
flags: [async]
|
|
42
|
-
---*/
|
|
43
|
-
|
|
44
|
-
var p = new Promise(function(resolve) {
|
|
45
|
-
resolve();
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
p.then($DONE, $DONE);
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// This is assert.js
|
|
3
|
-
|
|
4
|
-
'It has some contents';
|
|
5
|
-
|
|
6
|
-
/* that
|
|
7
|
-
*
|
|
8
|
-
* should
|
|
9
|
-
|
|
10
|
-
* not
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
`be ${ "modified" }`;
|
|
14
|
-
|
|
15
|
-
var including, trailing;
|
|
16
|
-
whitespace: ;
|
|
17
|
-
|
|
18
|
-
void "end of assert.js";
|
|
19
|
-
|
|
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;
|
|
29
|
-
$ERROR = function $ERROR(message) {
|
|
30
|
-
throw new Test262Error(message);
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
function $DONE(){
|
|
34
|
-
if(!arguments[0])
|
|
35
|
-
print('Test262:AsyncTestComplete');
|
|
36
|
-
else
|
|
37
|
-
print('Error: ' + arguments[0]);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/*---
|
|
41
|
-
description: Async test
|
|
42
|
-
flags: [async]
|
|
43
|
-
---*/
|
|
44
|
-
|
|
45
|
-
var p = new Promise(function(resolve) {
|
|
46
|
-
resolve();
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
p.then($DONE, $DONE);
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
// This is assert.js
|
|
2
|
-
|
|
3
|
-
'It has some contents';
|
|
4
|
-
|
|
5
|
-
/* that
|
|
6
|
-
*
|
|
7
|
-
* should
|
|
8
|
-
|
|
9
|
-
* not
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
`be ${ "modified" }`;
|
|
13
|
-
|
|
14
|
-
var including, trailing;
|
|
15
|
-
whitespace: ;
|
|
16
|
-
|
|
17
|
-
void "end of assert.js";
|
|
18
|
-
|
|
19
|
-
function Test262Error(message) {
|
|
20
|
-
this.message = message || "";
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
Test262Error.prototype.toString = function () {
|
|
24
|
-
return "Test262Error: " + this.message;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
var $ERROR;
|
|
28
|
-
$ERROR = function $ERROR(message) {
|
|
29
|
-
throw new Test262Error(message);
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
/*---
|
|
33
|
-
description: Should test in both modes
|
|
34
|
-
features: [var, try, if]
|
|
35
|
-
negative:
|
|
36
|
-
phase: runtime
|
|
37
|
-
type: ReferenceError
|
|
38
|
-
---*/
|
|
39
|
-
var strict;
|
|
40
|
-
try { x = 1; strict = false;} catch(e) { strict = true }
|
|
41
|
-
|
|
42
|
-
if(strict) {
|
|
43
|
-
y = 1;
|
|
44
|
-
} else {
|
|
45
|
-
throw new ReferenceError();
|
|
46
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// This is assert.js
|
|
3
|
-
|
|
4
|
-
'It has some contents';
|
|
5
|
-
|
|
6
|
-
/* that
|
|
7
|
-
*
|
|
8
|
-
* should
|
|
9
|
-
|
|
10
|
-
* not
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
`be ${ "modified" }`;
|
|
14
|
-
|
|
15
|
-
var including, trailing;
|
|
16
|
-
whitespace: ;
|
|
17
|
-
|
|
18
|
-
void "end of assert.js";
|
|
19
|
-
|
|
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;
|
|
29
|
-
$ERROR = function $ERROR(message) {
|
|
30
|
-
throw new Test262Error(message);
|
|
31
|
-
};
|
|
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
|
-
}
|
package/test/collateral/valid-with-paths/expected-content/test/strict/no/noStrict_default.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
// This is assert.js
|
|
2
|
-
|
|
3
|
-
'It has some contents';
|
|
4
|
-
|
|
5
|
-
/* that
|
|
6
|
-
*
|
|
7
|
-
* should
|
|
8
|
-
|
|
9
|
-
* not
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
`be ${ "modified" }`;
|
|
13
|
-
|
|
14
|
-
var including, trailing;
|
|
15
|
-
whitespace: ;
|
|
16
|
-
|
|
17
|
-
void "end of assert.js";
|
|
18
|
-
|
|
19
|
-
function Test262Error(message) {
|
|
20
|
-
this.message = message || "";
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
Test262Error.prototype.toString = function () {
|
|
24
|
-
return "Test262Error: " + this.message;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
var $ERROR;
|
|
28
|
-
$ERROR = function $ERROR(message) {
|
|
29
|
-
throw new Test262Error(message);
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
/*---
|
|
33
|
-
description: Should not test in strict mode
|
|
34
|
-
flags: [noStrict]
|
|
35
|
-
---*/
|
|
36
|
-
x = 5;
|
package/test/collateral/valid-with-paths/expected-content/test/strict/no/rawNoStrict_default.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/*---
|
|
2
|
-
description: Should not test in strict mode
|
|
3
|
-
flags: [raw]
|
|
4
|
-
---*/
|
|
5
|
-
var seemsStrict;
|
|
6
|
-
try {
|
|
7
|
-
x = 1;
|
|
8
|
-
} catch (err) {
|
|
9
|
-
seemsStrict = err.constructor === ReferenceError;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
if (seemsStrict) {
|
|
13
|
-
throw new Error('Script erroneously interpreted in strict mode.');
|
|
14
|
-
}
|
package/test/collateral/valid-with-paths/expected-metadata/test/async/asyncNegative_default.json
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"file": "test/async/asyncNegative.js",
|
|
3
|
-
"contents": "(The value of this property is over-sized, so it is validated independently.)",
|
|
4
|
-
"attrs": {
|
|
5
|
-
"description": "Async negative test",
|
|
6
|
-
"negative": {
|
|
7
|
-
"phase": "runtime",
|
|
8
|
-
"type": "RangeError"
|
|
9
|
-
},
|
|
10
|
-
"flags": {
|
|
11
|
-
"async": true
|
|
12
|
-
},
|
|
13
|
-
"includes": [
|
|
14
|
-
"assert.js",
|
|
15
|
-
"sta.js",
|
|
16
|
-
"doneprintHandle.js"
|
|
17
|
-
]
|
|
18
|
-
},
|
|
19
|
-
"copyright": "",
|
|
20
|
-
"scenario": "default",
|
|
21
|
-
"insertionIndex": 564
|
|
22
|
-
}
|
package/test/collateral/valid-with-paths/expected-metadata/test/async/asyncNegative_strict_mode.json
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"file": "test/async/asyncNegative.js",
|
|
3
|
-
"contents": "(The value of this property is over-sized, so it is validated independently.)",
|
|
4
|
-
"attrs": {
|
|
5
|
-
"description": "Async negative test (Strict Mode)",
|
|
6
|
-
"negative": {
|
|
7
|
-
"phase": "runtime",
|
|
8
|
-
"type": "RangeError"
|
|
9
|
-
},
|
|
10
|
-
"flags": {
|
|
11
|
-
"async": true
|
|
12
|
-
},
|
|
13
|
-
"includes": [
|
|
14
|
-
"assert.js",
|
|
15
|
-
"sta.js",
|
|
16
|
-
"doneprintHandle.js"
|
|
17
|
-
]
|
|
18
|
-
},
|
|
19
|
-
"copyright": "",
|
|
20
|
-
"scenario": "strict mode",
|
|
21
|
-
"insertionIndex": 578
|
|
22
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"file": "test/async/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": 564
|
|
18
|
-
}
|
package/test/collateral/valid-with-paths/expected-metadata/test/async/async_strict_mode.json
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"file": "test/async/async.js",
|
|
3
|
-
"contents": "(The value of this property is over-sized, so it is validated independently.)",
|
|
4
|
-
"attrs": {
|
|
5
|
-
"description": "Async test (Strict Mode)",
|
|
6
|
-
"flags": {
|
|
7
|
-
"async": true
|
|
8
|
-
},
|
|
9
|
-
"includes": [
|
|
10
|
-
"assert.js",
|
|
11
|
-
"sta.js",
|
|
12
|
-
"doneprintHandle.js"
|
|
13
|
-
]
|
|
14
|
-
},
|
|
15
|
-
"copyright": "",
|
|
16
|
-
"scenario": "strict mode",
|
|
17
|
-
"insertionIndex": 578
|
|
18
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"file": "test/bothStrict.js",
|
|
3
|
-
"contents": "(The value of this property is over-sized, so it is validated independently.)",
|
|
4
|
-
"attrs": {
|
|
5
|
-
"description": "Should test in both modes",
|
|
6
|
-
"features": [
|
|
7
|
-
"var",
|
|
8
|
-
"try",
|
|
9
|
-
"if"
|
|
10
|
-
],
|
|
11
|
-
"negative": {
|
|
12
|
-
"phase": "runtime",
|
|
13
|
-
"type": "ReferenceError"
|
|
14
|
-
},
|
|
15
|
-
"flags": {},
|
|
16
|
-
"includes": [
|
|
17
|
-
"assert.js",
|
|
18
|
-
"sta.js"
|
|
19
|
-
]
|
|
20
|
-
},
|
|
21
|
-
"copyright": "",
|
|
22
|
-
"scenario": "default",
|
|
23
|
-
"insertionIndex": 439
|
|
24
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"file": "test/bothStrict.js",
|
|
3
|
-
"contents": "(The value of this property is over-sized, so it is validated independently.)",
|
|
4
|
-
"attrs": {
|
|
5
|
-
"description": "Should test in both modes (Strict Mode)",
|
|
6
|
-
"features": [
|
|
7
|
-
"var",
|
|
8
|
-
"try",
|
|
9
|
-
"if"
|
|
10
|
-
],
|
|
11
|
-
"negative": {
|
|
12
|
-
"phase": "runtime",
|
|
13
|
-
"type": "ReferenceError"
|
|
14
|
-
},
|
|
15
|
-
"flags": {},
|
|
16
|
-
"includes": [
|
|
17
|
-
"assert.js",
|
|
18
|
-
"sta.js"
|
|
19
|
-
]
|
|
20
|
-
},
|
|
21
|
-
"copyright": "",
|
|
22
|
-
"scenario": "strict mode",
|
|
23
|
-
"insertionIndex": 453
|
|
24
|
-
}
|
package/test/collateral/valid-with-paths/expected-metadata/test/strict/no/noStrict_default.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"file": "test/strict/no/noStrict.js",
|
|
3
|
-
"contents": "(The value of this property is over-sized, so it is validated independently.)",
|
|
4
|
-
"attrs": {
|
|
5
|
-
"description": "Should not test in strict mode",
|
|
6
|
-
"flags": {
|
|
7
|
-
"noStrict": true
|
|
8
|
-
},
|
|
9
|
-
"includes": [
|
|
10
|
-
"assert.js",
|
|
11
|
-
"sta.js"
|
|
12
|
-
]
|
|
13
|
-
},
|
|
14
|
-
"copyright": "",
|
|
15
|
-
"scenario": "default",
|
|
16
|
-
"insertionIndex": 439
|
|
17
|
-
}
|
package/test/collateral/valid-with-paths/expected-metadata/test/strict/no/rawNoStrict_default.json
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"file": "test/strict/no/rawNoStrict.js",
|
|
3
|
-
"contents": "(The value of this property is over-sized, so it is validated independently.)",
|
|
4
|
-
"attrs": {
|
|
5
|
-
"description": "Should not test in strict mode",
|
|
6
|
-
"flags": {
|
|
7
|
-
"raw": true
|
|
8
|
-
},
|
|
9
|
-
"includes": []
|
|
10
|
-
},
|
|
11
|
-
"copyright": "",
|
|
12
|
-
"scenario": "default",
|
|
13
|
-
"insertionIndex": -1
|
|
14
|
-
}
|
|
@@ -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
|
-
};
|