Skip to content

Commit

Permalink
Enable allowAwaitOutsideFunction in test262, update whitelist
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianheine committed May 11, 2020
1 parent 6d555e8 commit 304ae5e
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 2 deletions.
3 changes: 1 addition & 2 deletions bin/run_test262.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ const unsupportedFeatures = [
"class-static-methods-private",
"numeric-separator-literal",
"optional-chaining",
"top-level-await"
];

run(
(content, {sourceType}) => parse(content, {sourceType, ecmaVersion: 11, allowHashBang: true}),
(content, {sourceType}) => parse(content, {sourceType, ecmaVersion: 11, allowHashBang: true, allowAwaitOutsideFunction: true}),
{
testsDirectory: path.dirname(require.resolve("test262/package.json")),
skip: test => (test.attrs.features && unsupportedFeatures.some(f => test.attrs.features.includes(f))),
Expand Down
38 changes: 38 additions & 0 deletions bin/test262.whitelist
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
built-ins/RegExp/property-escapes/generated/Emoji_Component.js (default)
built-ins/RegExp/property-escapes/generated/Emoji_Component.js (strict mode)
built-ins/RegExp/property-escapes/generated/Emoji_Modifier.js (default)
built-ins/RegExp/property-escapes/generated/Emoji_Modifier.js (strict mode)
built-ins/RegExp/property-escapes/generated/Emoji_Modifier_Base.js (default)
built-ins/RegExp/property-escapes/generated/Emoji_Modifier_Base.js (strict mode)
built-ins/RegExp/property-escapes/generated/Emoji_Presentation.js (default)
built-ins/RegExp/property-escapes/generated/Emoji_Presentation.js (strict mode)
built-ins/RegExp/property-escapes/generated/Extended_Pictographic.js (default)
built-ins/RegExp/property-escapes/generated/Extended_Pictographic.js (strict mode)
built-ins/RegExp/property-escapes/generated/Script_-_Chorasmian.js (default)
built-ins/RegExp/property-escapes/generated/Script_-_Chorasmian.js (strict mode)
built-ins/RegExp/property-escapes/generated/Script_-_Dives_Akuru.js (default)
built-ins/RegExp/property-escapes/generated/Script_-_Dives_Akuru.js (strict mode)
built-ins/RegExp/property-escapes/generated/Script_-_Khitan_Small_Script.js (default)
built-ins/RegExp/property-escapes/generated/Script_-_Khitan_Small_Script.js (strict mode)
built-ins/RegExp/property-escapes/generated/Script_-_Yezidi.js (default)
built-ins/RegExp/property-escapes/generated/Script_-_Yezidi.js (strict mode)
built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Chorasmian.js (default)
built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Chorasmian.js (strict mode)
built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Dives_Akuru.js (default)
built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Dives_Akuru.js (strict mode)
built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Khitan_Small_Script.js (default)
built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Khitan_Small_Script.js (strict mode)
built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Yezidi.js (default)
built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Yezidi.js (strict mode)

language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier.js (default)
language/literals/regexp/named-groups/invalid-non-id-continue-groupspecifier.js (strict mode)
language/literals/regexp/named-groups/invalid-non-id-start-groupspecifier-3.js (default)
Expand All @@ -8,3 +35,14 @@ language/literals/regexp/named-groups/invalid-u-escape-in-groupspecifier.js (def
language/literals/regexp/named-groups/invalid-u-escape-in-groupspecifier.js (strict mode)
language/literals/regexp/named-groups/invalid-u-escape-in-groupspecifier-2.js (default)
language/literals/regexp/named-groups/invalid-u-escape-in-groupspecifier-2.js (strict mode)

language/expressions/await/await-BindingIdentifier-in-global.js (default)
language/expressions/await/await-BindingIdentifier-in-global.js (strict mode)
language/expressions/await/await-in-global.js (default)
language/expressions/await/await-in-global.js (strict mode)
language/expressions/await/await-in-nested-function.js (default)
language/expressions/await/await-in-nested-function.js (strict mode)
language/expressions/await/await-in-nested-generator.js (default)
language/expressions/await/await-in-nested-generator.js (strict mode)
language/statements/labeled/value-await-non-module.js (default)
language/statements/labeled/value-await-non-module.js (strict mode)

0 comments on commit 304ae5e

Please sign in to comment.