From 15cae1dd040b2893345bf43cd6421797fe804ba5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20L=C3=B3pez=20de=20la=20Franca=20Beltran?= Date: Thu, 29 Aug 2024 11:49:06 +0200 Subject: [PATCH] Adjust TC39 suite --- .../breaking_test_errors-experimental_enhanced.json | 13 +++---------- js/tc39/breaking_test_errors-extended.json | 13 +++---------- js/tc39/tc39_test.go | 1 - 3 files changed, 6 insertions(+), 21 deletions(-) diff --git a/js/tc39/breaking_test_errors-experimental_enhanced.json b/js/tc39/breaking_test_errors-experimental_enhanced.json index 9ffc8b15732d..b1b67d59ac97 100644 --- a/js/tc39/breaking_test_errors-experimental_enhanced.json +++ b/js/tc39/breaking_test_errors-experimental_enhanced.json @@ -11,6 +11,9 @@ "test/annexB/built-ins/RegExp/prototype/compile/pattern-string-invalid-u.js-strict:true": "test/annexB/built-ins/RegExp/prototype/compile/pattern-string-invalid-u.js: Test262Error: invalid pattern: { Expected a SyntaxError to be thrown but no exception was thrown at all ", "test/built-ins/AsyncFunction/AsyncFunction-is-subclass.js-strict:true": "test/built-ins/AsyncFunction/AsyncFunction-is-subclass.js: Test262Error: Prototype of constructor is Function Expected SameValue(«function () { [native code] }», «function Function() { [native code] }») to be true ", "test/built-ins/Date/UTC/fp-evaluation-order.js-strict:true": "test/built-ins/Date/UTC/fp-evaluation-order.js: Test262Error: order of operations / precision in MakeTime Expected SameValue(«29256», «29312») to be true ", + "test/built-ins/Date/prototype/toISOString/15.9.5.43-0-10.js-strict:true": "test/built-ins/Date/prototype/toISOString/15.9.5.43-0-10.js: Test262Error: Expected a RangeError to be thrown but no exception was thrown at all ", + "test/built-ins/Date/prototype/toISOString/15.9.5.43-0-8.js-strict:true": "test/built-ins/Date/prototype/toISOString/15.9.5.43-0-8.js: Test262Error: Expected a RangeError to be thrown but no exception was thrown at all ", + "test/built-ins/Date/prototype/toISOString/15.9.5.43-0-9.js-strict:true": "test/built-ins/Date/prototype/toISOString/15.9.5.43-0-9.js: Test262Error: Expected a RangeError to be thrown but no exception was thrown at all ", "test/built-ins/Function/internals/Construct/base-ctor-revoked-proxy.js-strict:true": "test/built-ins/Function/internals/Construct/base-ctor-revoked-proxy.js: Test262Error: Expected a TypeError to be thrown but no exception was thrown at all ", "test/built-ins/RegExp/lookahead-quantifier-match-groups.js-strict:true": "test/built-ins/RegExp/lookahead-quantifier-match-groups.js: Test262Error: Expected [a, abc] and [a, undefined] to have the same contents. ? quantifier ", "test/built-ins/RegExp/nullable-quantifier.js-strict:true": "test/built-ins/RegExp/nullable-quantifier.js: Test262Error: The regex is expected to match the whole string Expected SameValue(«a», «ab») to be true ", @@ -40,10 +43,6 @@ "test/language/expressions/class/class-name-ident-await-escaped.js-strict:true": "test/language/expressions/class/class-name-ident-await-escaped.js: test/language/expressions/class/class-name-ident-await-escaped.js: Line 18:15 Keyword must not contain escaped characters (and 3 more errors)", "test/language/expressions/class/class-name-ident-await-module.js-strict:true": "test/language/expressions/class/class-name-ident-await-module.js: error is not an object (Test262: This statement should not be evaluated.)", "test/language/expressions/class/class-name-ident-await.js-strict:true": "test/language/expressions/class/class-name-ident-await.js: test/language/expressions/class/class-name-ident-await.js: Line 17:15 Unexpected token await (and 3 more errors)", - "test/language/expressions/class/cpn-class-expr-accessors-computed-property-name-from-integer-separators.js-strict:true": "test/language/expressions/class/cpn-class-expr-accessors-computed-property-name-from-integer-separators.js: test/language/expressions/class/cpn-class-expr-accessors-computed-property-name-from-integer-separators.js: Line 40:8 Unexpected token ILLEGAL (and 17 more errors)", - "test/language/expressions/class/cpn-class-expr-computed-property-name-from-integer-separators.js-strict:true": "test/language/expressions/class/cpn-class-expr-computed-property-name-from-integer-separators.js: test/language/expressions/class/cpn-class-expr-computed-property-name-from-integer-separators.js: Line 40:4 Unexpected token ILLEGAL (and 7 more errors)", - "test/language/expressions/class/cpn-class-expr-fields-computed-property-name-from-integer-separators.js-strict:true": "test/language/expressions/class/cpn-class-expr-fields-computed-property-name-from-integer-separators.js: test/language/expressions/class/cpn-class-expr-fields-computed-property-name-from-integer-separators.js: Line 40:4 Unexpected token ILLEGAL (and 4 more errors)", - "test/language/expressions/class/cpn-class-expr-fields-methods-computed-property-name-from-integer-separators.js-strict:true": "test/language/expressions/class/cpn-class-expr-fields-methods-computed-property-name-from-integer-separators.js: test/language/expressions/class/cpn-class-expr-fields-methods-computed-property-name-from-integer-separators.js: Line 40:4 Unexpected token ILLEGAL (and 7 more errors)", "test/language/expressions/class/elements/private-getter-is-not-a-own-property.js-strict:true": "test/language/expressions/class/elements/private-getter-is-not-a-own-property.js: TypeError: Object has no member '__lookupGetter__' ", "test/language/expressions/class/elements/private-setter-is-not-a-own-property.js-strict:true": "test/language/expressions/class/elements/private-setter-is-not-a-own-property.js: TypeError: Object has no member '__lookupSetter__' ", "test/language/expressions/class/static-init-await-reference.js-strict:true": "test/language/expressions/class/static-init-await-reference.js: test/language/expressions/class/static-init-await-reference.js: Line 15:5 Unexpected token await (and 1 more errors)", @@ -55,7 +54,6 @@ "test/language/expressions/import.meta/syntax/goal-module.js-strict:true": "test/language/expressions/import.meta/syntax/goal-module.js: file:///TestTC39/test262/test/language/expressions/import.meta/syntax/goal-module.js: Line 15:1 import not supported in script (and 3 more errors)", "test/language/expressions/import.meta/syntax/goal-script.js-strict:true": "test/language/expressions/import.meta/syntax/goal-script.js: error is not an object (Test262: This statement should not be evaluated.)", "test/language/expressions/in/private-field-rhs-await-absent.js-strict:true": "test/language/expressions/in/private-field-rhs-await-absent.js: test/language/expressions/in/private-field-rhs-await-absent.js: Line 24:10 Unexpected token await", - "test/language/expressions/object/cpn-obj-lit-computed-property-name-from-integer-separators.js-strict:true": "test/language/expressions/object/cpn-obj-lit-computed-property-name-from-integer-separators.js: test/language/expressions/object/cpn-obj-lit-computed-property-name-from-integer-separators.js: Line 29:4 Unexpected token ILLEGAL (and 6 more errors)", "test/language/expressions/object/identifier-shorthand-await-strict-mode.js-strict:false": "test/language/expressions/object/identifier-shorthand-await-strict-mode.js: test/language/expressions/object/identifier-shorthand-await-strict-mode.js: Line 19:5 Unexpected token await (and 1 more errors)", "test/language/expressions/object/method-definition/static-init-await-reference-accessor.js-strict:true": "test/language/expressions/object/method-definition/static-init-await-reference-accessor.js: test/language/expressions/object/method-definition/static-init-await-reference-accessor.js: Line 15:5 Unexpected token await (and 1 more errors)", "test/language/expressions/object/method-definition/static-init-await-reference-generator.js-strict:true": "test/language/expressions/object/method-definition/static-init-await-reference-generator.js: test/language/expressions/object/method-definition/static-init-await-reference-generator.js: Line 15:5 Unexpected token await (and 1 more errors)", @@ -87,7 +85,6 @@ "test/language/literals/regexp/u-invalid-range-lookbehind.js-strict:true": "test/language/literals/regexp/u-invalid-range-lookbehind.js: error is not an object (Test262: This statement should not be evaluated.)", "test/language/literals/regexp/u-invalid-range-negative-lookahead.js-strict:true": "test/language/literals/regexp/u-invalid-range-negative-lookahead.js: error is not an object (Test262: This statement should not be evaluated.)", "test/language/literals/regexp/u-invalid-range-negative-lookbehind.js-strict:true": "test/language/literals/regexp/u-invalid-range-negative-lookbehind.js: error is not an object (Test262: This statement should not be evaluated.)", - "test/language/literals/regexp/u-unicode-esc-non-hex.js-strict:true": "test/language/literals/regexp/u-unicode-esc-non-hex.js: error is not an object (Test262: This statement should not be evaluated.)", "test/language/literals/string/S7.8.4_A4.3_T1.js-strict:true": "test/language/literals/string/S7.8.4_A4.3_T1.js: error is not an object (Test262: This statement should not be evaluated.)", "test/language/literals/string/S7.8.4_A4.3_T2.js-strict:true": "test/language/literals/string/S7.8.4_A4.3_T2.js: error is not an object (Test262: This statement should not be evaluated.)", "test/language/module-code/early-dup-top-function.js-strict:true": "test/language/module-code/early-dup-top-function.js: error is not an object (Test262: This statement should not be evaluated.)", @@ -111,10 +108,6 @@ "test/language/statements/class/class-name-ident-await-escaped.js-strict:true": "test/language/statements/class/class-name-ident-await-escaped.js: test/language/statements/class/class-name-ident-await-escaped.js: Line 18:7 Keyword must not contain escaped characters", "test/language/statements/class/class-name-ident-await-module.js-strict:true": "test/language/statements/class/class-name-ident-await-module.js: error is not an object (Test262: This statement should not be evaluated.)", "test/language/statements/class/class-name-ident-await.js-strict:true": "test/language/statements/class/class-name-ident-await.js: test/language/statements/class/class-name-ident-await.js: Line 17:7 Unexpected token await", - "test/language/statements/class/cpn-class-decl-accessors-computed-property-name-from-integer-separators.js-strict:true": "test/language/statements/class/cpn-class-decl-accessors-computed-property-name-from-integer-separators.js: test/language/statements/class/cpn-class-decl-accessors-computed-property-name-from-integer-separators.js: Line 40:8 Unexpected token ILLEGAL (and 16 more errors)", - "test/language/statements/class/cpn-class-decl-computed-property-name-from-integer-separators.js-strict:true": "test/language/statements/class/cpn-class-decl-computed-property-name-from-integer-separators.js: test/language/statements/class/cpn-class-decl-computed-property-name-from-integer-separators.js: Line 40:4 Unexpected token ILLEGAL (and 6 more errors)", - "test/language/statements/class/cpn-class-decl-fields-computed-property-name-from-integer-separators.js-strict:true": "test/language/statements/class/cpn-class-decl-fields-computed-property-name-from-integer-separators.js: test/language/statements/class/cpn-class-decl-fields-computed-property-name-from-integer-separators.js: Line 40:4 Unexpected token ILLEGAL (and 4 more errors)", - "test/language/statements/class/cpn-class-decl-fields-methods-computed-property-name-from-integer-separators.js-strict:true": "test/language/statements/class/cpn-class-decl-fields-methods-computed-property-name-from-integer-separators.js: test/language/statements/class/cpn-class-decl-fields-methods-computed-property-name-from-integer-separators.js: Line 40:4 Unexpected token ILLEGAL (and 7 more errors)", "test/language/statements/class/elements/private-getter-is-not-a-own-property.js-strict:true": "test/language/statements/class/elements/private-getter-is-not-a-own-property.js: TypeError: Object has no member '__lookupGetter__' ", "test/language/statements/class/elements/private-setter-is-not-a-own-property.js-strict:true": "test/language/statements/class/elements/private-setter-is-not-a-own-property.js: TypeError: Object has no member '__lookupSetter__' ", "test/language/statements/labeled/value-await-module-escaped.js-strict:true": "test/language/statements/labeled/value-await-module-escaped.js: error is not an object (Test262: This statement should not be evaluated.)", diff --git a/js/tc39/breaking_test_errors-extended.json b/js/tc39/breaking_test_errors-extended.json index 9ffc8b15732d..b1b67d59ac97 100644 --- a/js/tc39/breaking_test_errors-extended.json +++ b/js/tc39/breaking_test_errors-extended.json @@ -11,6 +11,9 @@ "test/annexB/built-ins/RegExp/prototype/compile/pattern-string-invalid-u.js-strict:true": "test/annexB/built-ins/RegExp/prototype/compile/pattern-string-invalid-u.js: Test262Error: invalid pattern: { Expected a SyntaxError to be thrown but no exception was thrown at all ", "test/built-ins/AsyncFunction/AsyncFunction-is-subclass.js-strict:true": "test/built-ins/AsyncFunction/AsyncFunction-is-subclass.js: Test262Error: Prototype of constructor is Function Expected SameValue(«function () { [native code] }», «function Function() { [native code] }») to be true ", "test/built-ins/Date/UTC/fp-evaluation-order.js-strict:true": "test/built-ins/Date/UTC/fp-evaluation-order.js: Test262Error: order of operations / precision in MakeTime Expected SameValue(«29256», «29312») to be true ", + "test/built-ins/Date/prototype/toISOString/15.9.5.43-0-10.js-strict:true": "test/built-ins/Date/prototype/toISOString/15.9.5.43-0-10.js: Test262Error: Expected a RangeError to be thrown but no exception was thrown at all ", + "test/built-ins/Date/prototype/toISOString/15.9.5.43-0-8.js-strict:true": "test/built-ins/Date/prototype/toISOString/15.9.5.43-0-8.js: Test262Error: Expected a RangeError to be thrown but no exception was thrown at all ", + "test/built-ins/Date/prototype/toISOString/15.9.5.43-0-9.js-strict:true": "test/built-ins/Date/prototype/toISOString/15.9.5.43-0-9.js: Test262Error: Expected a RangeError to be thrown but no exception was thrown at all ", "test/built-ins/Function/internals/Construct/base-ctor-revoked-proxy.js-strict:true": "test/built-ins/Function/internals/Construct/base-ctor-revoked-proxy.js: Test262Error: Expected a TypeError to be thrown but no exception was thrown at all ", "test/built-ins/RegExp/lookahead-quantifier-match-groups.js-strict:true": "test/built-ins/RegExp/lookahead-quantifier-match-groups.js: Test262Error: Expected [a, abc] and [a, undefined] to have the same contents. ? quantifier ", "test/built-ins/RegExp/nullable-quantifier.js-strict:true": "test/built-ins/RegExp/nullable-quantifier.js: Test262Error: The regex is expected to match the whole string Expected SameValue(«a», «ab») to be true ", @@ -40,10 +43,6 @@ "test/language/expressions/class/class-name-ident-await-escaped.js-strict:true": "test/language/expressions/class/class-name-ident-await-escaped.js: test/language/expressions/class/class-name-ident-await-escaped.js: Line 18:15 Keyword must not contain escaped characters (and 3 more errors)", "test/language/expressions/class/class-name-ident-await-module.js-strict:true": "test/language/expressions/class/class-name-ident-await-module.js: error is not an object (Test262: This statement should not be evaluated.)", "test/language/expressions/class/class-name-ident-await.js-strict:true": "test/language/expressions/class/class-name-ident-await.js: test/language/expressions/class/class-name-ident-await.js: Line 17:15 Unexpected token await (and 3 more errors)", - "test/language/expressions/class/cpn-class-expr-accessors-computed-property-name-from-integer-separators.js-strict:true": "test/language/expressions/class/cpn-class-expr-accessors-computed-property-name-from-integer-separators.js: test/language/expressions/class/cpn-class-expr-accessors-computed-property-name-from-integer-separators.js: Line 40:8 Unexpected token ILLEGAL (and 17 more errors)", - "test/language/expressions/class/cpn-class-expr-computed-property-name-from-integer-separators.js-strict:true": "test/language/expressions/class/cpn-class-expr-computed-property-name-from-integer-separators.js: test/language/expressions/class/cpn-class-expr-computed-property-name-from-integer-separators.js: Line 40:4 Unexpected token ILLEGAL (and 7 more errors)", - "test/language/expressions/class/cpn-class-expr-fields-computed-property-name-from-integer-separators.js-strict:true": "test/language/expressions/class/cpn-class-expr-fields-computed-property-name-from-integer-separators.js: test/language/expressions/class/cpn-class-expr-fields-computed-property-name-from-integer-separators.js: Line 40:4 Unexpected token ILLEGAL (and 4 more errors)", - "test/language/expressions/class/cpn-class-expr-fields-methods-computed-property-name-from-integer-separators.js-strict:true": "test/language/expressions/class/cpn-class-expr-fields-methods-computed-property-name-from-integer-separators.js: test/language/expressions/class/cpn-class-expr-fields-methods-computed-property-name-from-integer-separators.js: Line 40:4 Unexpected token ILLEGAL (and 7 more errors)", "test/language/expressions/class/elements/private-getter-is-not-a-own-property.js-strict:true": "test/language/expressions/class/elements/private-getter-is-not-a-own-property.js: TypeError: Object has no member '__lookupGetter__' ", "test/language/expressions/class/elements/private-setter-is-not-a-own-property.js-strict:true": "test/language/expressions/class/elements/private-setter-is-not-a-own-property.js: TypeError: Object has no member '__lookupSetter__' ", "test/language/expressions/class/static-init-await-reference.js-strict:true": "test/language/expressions/class/static-init-await-reference.js: test/language/expressions/class/static-init-await-reference.js: Line 15:5 Unexpected token await (and 1 more errors)", @@ -55,7 +54,6 @@ "test/language/expressions/import.meta/syntax/goal-module.js-strict:true": "test/language/expressions/import.meta/syntax/goal-module.js: file:///TestTC39/test262/test/language/expressions/import.meta/syntax/goal-module.js: Line 15:1 import not supported in script (and 3 more errors)", "test/language/expressions/import.meta/syntax/goal-script.js-strict:true": "test/language/expressions/import.meta/syntax/goal-script.js: error is not an object (Test262: This statement should not be evaluated.)", "test/language/expressions/in/private-field-rhs-await-absent.js-strict:true": "test/language/expressions/in/private-field-rhs-await-absent.js: test/language/expressions/in/private-field-rhs-await-absent.js: Line 24:10 Unexpected token await", - "test/language/expressions/object/cpn-obj-lit-computed-property-name-from-integer-separators.js-strict:true": "test/language/expressions/object/cpn-obj-lit-computed-property-name-from-integer-separators.js: test/language/expressions/object/cpn-obj-lit-computed-property-name-from-integer-separators.js: Line 29:4 Unexpected token ILLEGAL (and 6 more errors)", "test/language/expressions/object/identifier-shorthand-await-strict-mode.js-strict:false": "test/language/expressions/object/identifier-shorthand-await-strict-mode.js: test/language/expressions/object/identifier-shorthand-await-strict-mode.js: Line 19:5 Unexpected token await (and 1 more errors)", "test/language/expressions/object/method-definition/static-init-await-reference-accessor.js-strict:true": "test/language/expressions/object/method-definition/static-init-await-reference-accessor.js: test/language/expressions/object/method-definition/static-init-await-reference-accessor.js: Line 15:5 Unexpected token await (and 1 more errors)", "test/language/expressions/object/method-definition/static-init-await-reference-generator.js-strict:true": "test/language/expressions/object/method-definition/static-init-await-reference-generator.js: test/language/expressions/object/method-definition/static-init-await-reference-generator.js: Line 15:5 Unexpected token await (and 1 more errors)", @@ -87,7 +85,6 @@ "test/language/literals/regexp/u-invalid-range-lookbehind.js-strict:true": "test/language/literals/regexp/u-invalid-range-lookbehind.js: error is not an object (Test262: This statement should not be evaluated.)", "test/language/literals/regexp/u-invalid-range-negative-lookahead.js-strict:true": "test/language/literals/regexp/u-invalid-range-negative-lookahead.js: error is not an object (Test262: This statement should not be evaluated.)", "test/language/literals/regexp/u-invalid-range-negative-lookbehind.js-strict:true": "test/language/literals/regexp/u-invalid-range-negative-lookbehind.js: error is not an object (Test262: This statement should not be evaluated.)", - "test/language/literals/regexp/u-unicode-esc-non-hex.js-strict:true": "test/language/literals/regexp/u-unicode-esc-non-hex.js: error is not an object (Test262: This statement should not be evaluated.)", "test/language/literals/string/S7.8.4_A4.3_T1.js-strict:true": "test/language/literals/string/S7.8.4_A4.3_T1.js: error is not an object (Test262: This statement should not be evaluated.)", "test/language/literals/string/S7.8.4_A4.3_T2.js-strict:true": "test/language/literals/string/S7.8.4_A4.3_T2.js: error is not an object (Test262: This statement should not be evaluated.)", "test/language/module-code/early-dup-top-function.js-strict:true": "test/language/module-code/early-dup-top-function.js: error is not an object (Test262: This statement should not be evaluated.)", @@ -111,10 +108,6 @@ "test/language/statements/class/class-name-ident-await-escaped.js-strict:true": "test/language/statements/class/class-name-ident-await-escaped.js: test/language/statements/class/class-name-ident-await-escaped.js: Line 18:7 Keyword must not contain escaped characters", "test/language/statements/class/class-name-ident-await-module.js-strict:true": "test/language/statements/class/class-name-ident-await-module.js: error is not an object (Test262: This statement should not be evaluated.)", "test/language/statements/class/class-name-ident-await.js-strict:true": "test/language/statements/class/class-name-ident-await.js: test/language/statements/class/class-name-ident-await.js: Line 17:7 Unexpected token await", - "test/language/statements/class/cpn-class-decl-accessors-computed-property-name-from-integer-separators.js-strict:true": "test/language/statements/class/cpn-class-decl-accessors-computed-property-name-from-integer-separators.js: test/language/statements/class/cpn-class-decl-accessors-computed-property-name-from-integer-separators.js: Line 40:8 Unexpected token ILLEGAL (and 16 more errors)", - "test/language/statements/class/cpn-class-decl-computed-property-name-from-integer-separators.js-strict:true": "test/language/statements/class/cpn-class-decl-computed-property-name-from-integer-separators.js: test/language/statements/class/cpn-class-decl-computed-property-name-from-integer-separators.js: Line 40:4 Unexpected token ILLEGAL (and 6 more errors)", - "test/language/statements/class/cpn-class-decl-fields-computed-property-name-from-integer-separators.js-strict:true": "test/language/statements/class/cpn-class-decl-fields-computed-property-name-from-integer-separators.js: test/language/statements/class/cpn-class-decl-fields-computed-property-name-from-integer-separators.js: Line 40:4 Unexpected token ILLEGAL (and 4 more errors)", - "test/language/statements/class/cpn-class-decl-fields-methods-computed-property-name-from-integer-separators.js-strict:true": "test/language/statements/class/cpn-class-decl-fields-methods-computed-property-name-from-integer-separators.js: test/language/statements/class/cpn-class-decl-fields-methods-computed-property-name-from-integer-separators.js: Line 40:4 Unexpected token ILLEGAL (and 7 more errors)", "test/language/statements/class/elements/private-getter-is-not-a-own-property.js-strict:true": "test/language/statements/class/elements/private-getter-is-not-a-own-property.js: TypeError: Object has no member '__lookupGetter__' ", "test/language/statements/class/elements/private-setter-is-not-a-own-property.js-strict:true": "test/language/statements/class/elements/private-setter-is-not-a-own-property.js: TypeError: Object has no member '__lookupSetter__' ", "test/language/statements/labeled/value-await-module-escaped.js-strict:true": "test/language/statements/labeled/value-await-module-escaped.js: error is not an object (Test262: This statement should not be evaluated.)", diff --git a/js/tc39/tc39_test.go b/js/tc39/tc39_test.go index 3e179b8a7277..d474ffa0b70a 100644 --- a/js/tc39/tc39_test.go +++ b/js/tc39/tc39_test.go @@ -76,7 +76,6 @@ var ( "Atomics.pause", "FinalizationRegistry", "WeakRef", - "numeric-separator-literal", "__getter__", "__setter__", "ShadowRealm",