Changeset 259529 in webkit
- Timestamp:
- Apr 3, 2020 11:13:29 PM (4 years ago)
- Location:
- trunk/JSTests
- Files:
-
- 139 added
- 8 deleted
- 16 edited
- 4 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/JSTests/ChangeLog
r259481 r259529 1 2020-04-03 Alexey Shvayka <shvaikalesh@gmail.com> 2 3 Update test262 to commit 62b8fce38971 4 https://bugs.webkit.org/show_bug.cgi?id=209979 5 6 Reviewed by Ross Kirsling. 7 8 * .gitattributes: Added. 9 * test262/config.yaml: Skip "logical-assignment-operators" and "Promise.any" features. 10 * test262/expectations.yaml: 11 * test262/harness/*: Updated. 12 * test262/latest-changes-summary.txt: 13 * test262/test/*: Updated. 14 * test262/test262-Revision.txt: 15 1 16 2020-04-03 Yusuke Suzuki <ysuzuki@apple.com> 2 17 -
trunk/JSTests/test262/config.yaml
r259370 r259529 18 18 - class-static-methods-private 19 19 - host-gc-required 20 # https://bugs.webkit.org/show_bug.cgi?id=202475 20 21 - regexp-match-indices 21 22 - top-level-await 23 # https://bugs.webkit.org/show_bug.cgi?id=209716 24 - logical-assignment-operators 25 # https://bugs.webkit.org/show_bug.cgi?id=202566 26 - Promise.any 22 27 - AggregateError 23 28 - FinalizationRegistry … … 154 159 # https://bugs.webkit.org/show_bug.cgi?id=208639 155 160 - test/built-ins/Array/prototype/lastIndexOf/length-near-integer-limit.js 156 157 # https://bugs.webkit.org/show_bug.cgi?id=143511158 - test/built-ins/JSON/stringify/replacer-function-stack-overflow.js159 - test/built-ins/JSON/stringify/value-tojson-stack-overflow.js -
trunk/JSTests/test262/expectations.yaml
r259444 r259529 610 610 test/annexB/language/global-code/switch-dflt-global-skip-early-err.js: 611 611 default: "SyntaxError: Cannot declare a function that shadows a let/const/class/function variable 'f' in strict mode." 612 test/annexB/language/literals/regexp/legacy-octal-escape.js: 613 default: "TypeError: null is not an object (evaluating '/\\0111/.exec('\\x091')[0]')" 614 strict mode: "TypeError: null is not an object (evaluating '/\\0111/.exec('\\x091')[0]')" 612 615 test/annexB/language/statements/for-of/iterator-close-return-emulates-undefined-throws-when-called.js: 613 616 default: 'Test262Error: Expected a TypeError to be thrown but no exception was thrown at all' … … 1220 1223 default: 'Test262Error: Expected a TypeError but got a TypeError' 1221 1224 strict mode: 'Test262Error: Expected a TypeError but got a TypeError' 1225 test/built-ins/Proxy/create-handler-is-revoked-proxy.js: 1226 default: "TypeError: A Proxy's 'handler' shouldn't be a revoked Proxy" 1227 strict mode: "TypeError: A Proxy's 'handler' shouldn't be a revoked Proxy" 1228 test/built-ins/Proxy/create-target-is-revoked-function-proxy.js: 1229 default: "TypeError: A Proxy's 'target' shouldn't be a revoked Proxy" 1230 strict mode: "TypeError: A Proxy's 'target' shouldn't be a revoked Proxy" 1231 test/built-ins/Proxy/create-target-is-revoked-proxy.js: 1232 default: "TypeError: A Proxy's 'target' shouldn't be a revoked Proxy" 1233 strict mode: "TypeError: A Proxy's 'target' shouldn't be a revoked Proxy" 1222 1234 test/built-ins/Proxy/defineProperty/trap-is-undefined-target-is-proxy.js: 1223 1235 default: 'Test262Error: Expected a TypeError to be thrown but no exception was thrown at all' … … 1235 1247 default: 'Test262Error: Expected [length, foo, 0, Symbol()] and [Symbol(), length, foo, 0] to have the same contents. ' 1236 1248 strict mode: 'Test262Error: Expected [length, foo, 0, Symbol()] and [Symbol(), length, foo, 0] to have the same contents. ' 1249 test/built-ins/Proxy/set/trap-is-missing-receiver-multiple-calls-index.js: 1250 default: 'Test262Error: Expected [0] and [0, 0, 0] to have the same contents. getOwnPropertyDescriptor: key present on [[ProxyTarget]]' 1251 strict mode: 'TypeError: Attempted to assign to readonly property.' 1252 test/built-ins/Proxy/set/trap-is-missing-receiver-multiple-calls.js: 1253 default: 'Test262Error: Expected [foo] and [foo, foo, foo] to have the same contents. getOwnPropertyDescriptor: key present on [[ProxyTarget]]' 1254 strict mode: 'TypeError: Attempted to assign to readonly property.' 1237 1255 test/built-ins/Proxy/set/trap-is-missing-target-is-proxy.js: 1238 1256 default: 'Test262Error: Expected SameValue(«0», «1») to be true' … … 1927 1945 default: 'Test262Error: Expected [localeMatcher, hour12] and [localeMatcher, calendar, numberingSystem, hour12] to have the same contents. ' 1928 1946 strict mode: 'Test262Error: Expected [localeMatcher, hour12] and [localeMatcher, calendar, numberingSystem, hour12] to have the same contents. ' 1929 test/intl402/DateTimeFormat/invalid-numbering-system-calendar-options.js: 1930 default: 'Test262Error: Invalid numberingSystem value ab was not rejected. Expected a RangeError to be thrown but no exception was thrown at all' 1931 strict mode: 'Test262Error: Invalid numberingSystem value ab was not rejected. Expected a RangeError to be thrown but no exception was thrown at all' 1947 test/intl402/DateTimeFormat/constructor-options-calendar-invalid.js: 1948 default: 'Test262Error: new Intl.DateTimeFormat("en", {calendar: ""}) throws RangeError Expected a RangeError to be thrown but no exception was thrown at all' 1949 strict mode: 'Test262Error: new Intl.DateTimeFormat("en", {calendar: ""}) throws RangeError Expected a RangeError to be thrown but no exception was thrown at all' 1950 test/intl402/DateTimeFormat/constructor-options-numberingSystem-invalid.js: 1951 default: 'Test262Error: new Intl.DateTimeFormat("en", {numberingSystem: ""}) throws RangeError Expected a RangeError to be thrown but no exception was thrown at all' 1952 strict mode: 'Test262Error: new Intl.DateTimeFormat("en", {numberingSystem: ""}) throws RangeError Expected a RangeError to be thrown but no exception was thrown at all' 1932 1953 test/intl402/DateTimeFormat/numbering-system-calendar-options.js: 1933 1954 default: "Test262Error: Options value for property numberingSystem doesn't override locale extension key nu. Expected SameValue(«arab», «latn») to be true" … … 1972 1993 default: 'Test262Error: Expected [localeMatcher, style] and [localeMatcher, numberingSystem, style] to have the same contents. ' 1973 1994 strict mode: 'Test262Error: Expected [localeMatcher, style] and [localeMatcher, numberingSystem, style] to have the same contents. ' 1995 test/intl402/NumberFormat/constructor-options-numberingSystem-invalid.js: 1996 default: 'Test262Error: new Intl.NumberFormat("en", {numberingSystem: ""}) throws RangeError Expected a RangeError to be thrown but no exception was thrown at all' 1997 strict mode: 'Test262Error: new Intl.NumberFormat("en", {numberingSystem: ""}) throws RangeError Expected a RangeError to be thrown but no exception was thrown at all' 1974 1998 test/intl402/NumberFormat/constructor-options-throwing-getters.js: 1975 1999 default: 'Test262Error: Exception from numberingSystem getter should be propagated Expected a CustomError to be thrown but no exception was thrown at all' 1976 2000 strict mode: 'Test262Error: Exception from numberingSystem getter should be propagated Expected a CustomError to be thrown but no exception was thrown at all' 1977 test/intl402/NumberFormat/invalid-numbering-system-options.js:1978 default: 'Test262Error: Invalid numberingSystem value ab was not rejected. Expected a RangeError to be thrown but no exception was thrown at all'1979 strict mode: 'Test262Error: Invalid numberingSystem value ab was not rejected. Expected a RangeError to be thrown but no exception was thrown at all'1980 2001 test/intl402/NumberFormat/numbering-system-options.js: 1981 2002 default: "Test262Error: Options value for property numberingSystem doesn't override locale extension key nu. Expected SameValue(«arab», «latn») to be true" … … 2129 2150 test/language/block-scope/syntax/redeclaration/var-redeclaration-attempt-after-generator.js: 2130 2151 default: 'Test262: This statement should not be evaluated.' 2131 test/language/eval-code/direct/new.target-arrow.js:2132 default: 'Test262Error: Expected SameValue(«function ReferenceError() {'2133 strict mode: 'Test262Error: Expected SameValue(«function ReferenceError() {'2134 2152 test/language/eval-code/direct/non-definable-function-with-function.js: 2135 2153 default: 'Test262Error: Expected SameValue(«[object Object]», «undefined») to be true' … … 3208 3226 default: 'Test262Error: Expected SameValue(«�», «null») to be true' 3209 3227 strict mode: 'Test262Error: Expected SameValue(«�», «null») to be true' 3228 test/language/literals/string/unicode-escape-no-hex-err-double.js: 3229 default: 'Test262: This statement should not be evaluated.' 3230 strict mode: 'Test262: This statement should not be evaluated.' 3231 test/language/literals/string/unicode-escape-no-hex-err-single.js: 3232 default: 'Test262: This statement should not be evaluated.' 3233 strict mode: 'Test262: This statement should not be evaluated.' 3210 3234 test/language/module-code/eval-rqstd-once.js: 3211 3235 module: "SyntaxError: Unexpected identifier 'as'. Expected 'from' before exported module name." … … 3612 3636 default: 'Test262: This statement should not be evaluated.' 3613 3637 strict mode: 'Test262: This statement should not be evaluated.' 3638 test/language/statements/for-of/iterator-close-throw-get-method-abrupt.js: 3639 default: 'Test262Error: Expected a Test262Error but got a Object' 3640 strict mode: 'Test262Error: Expected a Test262Error but got a Object' 3614 3641 test/language/statements/for-of/let-array-with-newline.js: 3615 3642 default: 'Test262: This statement should not be evaluated.' -
trunk/JSTests/test262/harness/async-gc.js
r257590 r259529 22 22 23 23 return Promise.resolve('tick').then(() => asyncGCDeref()).then(() => { 24 var names ;24 var names = []; 25 25 26 26 // consume iterator to capture names 27 finalizationRegistry.cleanupSome( iter => { names = [...iter]; });27 finalizationRegistry.cleanupSome(name => { names.push(name); }); 28 28 29 29 if (!names || names.length != length) { -
trunk/JSTests/test262/latest-changes-summary.txt
r259032 r259529 1 M harness/assert.js 2 M harness/propertyHelper.js 3 D test/built-ins/JSON/stringify/replacer-function-stack-overflow.js 4 D test/built-ins/JSON/stringify/value-tojson-stack-overflow.js 5 A test/built-ins/NativeErrors/AggregateError/newtarget-is-undefined.js 6 M test/built-ins/RegExp/prototype/Symbol.replace/poisoned-stdlib.js 7 M test/harness/assert-samevalue-zeros.js 8 A test/language/expressions/class/elements/private-field-after-optional-chain.js 9 A test/language/statements/class/elements/private-field-after-optional-chain.js 1 M harness/async-gc.js 2 M test/annexB/language/literals/regexp/legacy-octal-escape.js 3 D test/built-ins/AsyncFromSyncIteratorPrototype/.DS_Store 4 D test/built-ins/AsyncFromSyncIteratorPrototype/next/.DS_Store 5 A test/built-ins/AsyncFromSyncIteratorPrototype/next/absent-value-not-passed.js 6 A test/built-ins/AsyncFromSyncIteratorPrototype/return/absent-value-not-passed.js 7 A test/built-ins/AsyncFromSyncIteratorPrototype/throw/absent-value-not-passed.js 8 D test/built-ins/FinalizationRegistry/FinalizationRegistryCleanupIteratorPrototype/Symbol.toStringTag.js 9 D test/built-ins/FinalizationRegistry/FinalizationRegistryCleanupIteratorPrototype/next-job-not-active-throws.js 10 D test/built-ins/FinalizationRegistry/FinalizationRegistryCleanupIteratorPrototype/next-length.js 11 D test/built-ins/FinalizationRegistry/FinalizationRegistryCleanupIteratorPrototype/next-missing-internal-throws.js 12 D test/built-ins/FinalizationRegistry/FinalizationRegistryCleanupIteratorPrototype/next-name.js 13 D test/built-ins/FinalizationRegistry/FinalizationRegistryCleanupIteratorPrototype/next-not-object-throws.js 14 D test/built-ins/FinalizationRegistry/FinalizationRegistryCleanupIteratorPrototype/next-prop-desc.js 15 D test/built-ins/FinalizationRegistry/FinalizationRegistryCleanupIteratorPrototype/proto.js 16 M test/built-ins/FinalizationRegistry/gc-has-one-chance-to-call-cleanupCallback.js 17 D test/built-ins/FinalizationRegistry/prototype/cleanupSome/callback-iterator-proto.js 18 M test/built-ins/FinalizationRegistry/prototype/cleanupSome/cleanup-prevented-with-reference.js 19 M test/built-ins/FinalizationRegistry/prototype/cleanupSome/cleanup-prevented-with-unregister.js 20 D test/built-ins/FinalizationRegistry/prototype/cleanupSome/cleanupcallback-iterator-proto.js 21 R076 test/built-ins/FinalizationRegistry/prototype/cleanupSome/iterator-holdings-multiple-values.js test/built-ins/FinalizationRegistry/prototype/cleanupSome/holdings-multiple-values.js 22 D test/built-ins/FinalizationRegistry/prototype/cleanupSome/poisoned-callback-throws.js 23 R069 test/built-ins/FinalizationRegistry/prototype/cleanupSome/cleanup-throws-in-callback.js test/built-ins/FinalizationRegistry/prototype/cleanupSome/reentrancy.js 24 M test/built-ins/FinalizationRegistry/prototype/cleanupSome/return-undefined-with-gc.js 25 M test/built-ins/FinalizationRegistry/prototype/unregister/unregister-cleaned-up-cell.js 26 A test/built-ins/Promise/any/capability-executor-called-twice.js 27 A test/built-ins/Promise/any/capability-executor-not-callable.js 28 A test/built-ins/Promise/any/ctx-ctor-throws.js 29 A test/built-ins/Promise/any/ctx-ctor.js 30 A test/built-ins/Promise/any/ctx-non-ctor.js 31 A test/built-ins/Promise/any/invoke-resolve-error-close.js 32 A test/built-ins/Promise/any/invoke-resolve-error-reject.js 33 A test/built-ins/Promise/any/invoke-resolve-get-error-close.js 34 A test/built-ins/Promise/any/invoke-resolve-get-error-reject.js 35 A test/built-ins/Promise/any/invoke-resolve-get-once-multiple-calls.js 36 A test/built-ins/Promise/any/invoke-resolve-get-once-no-calls.js 37 A test/built-ins/Promise/any/invoke-resolve-not-callable-rejects-with-typerror.js 38 A test/built-ins/Promise/any/invoke-resolve-on-promises-every-iteration-of-custom.js 39 A test/built-ins/Promise/any/invoke-resolve-on-promises-every-iteration-of-promise.js 40 A test/built-ins/Promise/any/invoke-resolve-on-values-every-iteration-of-custom.js 41 A test/built-ins/Promise/any/invoke-resolve-on-values-every-iteration-of-promise.js 42 A test/built-ins/Promise/any/invoke-resolve.js 43 A test/built-ins/Promise/any/invoke-then-error-close.js 44 A test/built-ins/Promise/any/invoke-then-error-reject.js 45 A test/built-ins/Promise/any/invoke-then-get-error-close.js 46 A test/built-ins/Promise/any/invoke-then-get-error-reject.js 47 A test/built-ins/Promise/any/invoke-then-on-promises-every-iteration.js 48 A test/built-ins/Promise/any/invoke-then.js 49 A test/built-ins/Promise/any/is-function.js 50 A test/built-ins/Promise/any/iter-arg-is-empty-iterable-reject.js 51 A test/built-ins/Promise/any/iter-arg-is-empty-string-reject.js 52 A test/built-ins/Promise/any/iter-arg-is-false-reject.js 53 A test/built-ins/Promise/any/iter-arg-is-null-reject.js 54 A test/built-ins/Promise/any/iter-arg-is-number-reject.js 55 A test/built-ins/Promise/any/iter-arg-is-poisoned.js 56 A test/built-ins/Promise/any/iter-arg-is-string-resolve.js 57 A test/built-ins/Promise/any/iter-arg-is-symbol-reject.js 58 A test/built-ins/Promise/any/iter-arg-is-true-reject.js 59 A test/built-ins/Promise/any/iter-arg-is-undefined-reject.js 60 A test/built-ins/Promise/any/iter-assigned-false-reject.js 61 A test/built-ins/Promise/any/iter-assigned-null-reject.js 62 A test/built-ins/Promise/any/iter-assigned-number-reject.js 63 A test/built-ins/Promise/any/iter-assigned-string-reject.js 64 A test/built-ins/Promise/any/iter-assigned-symbol-reject.js 65 A test/built-ins/Promise/any/iter-assigned-true-reject.js 66 A test/built-ins/Promise/any/iter-assigned-undefined-reject.js 67 A test/built-ins/Promise/any/iter-step-err-no-close.js 68 A test/built-ins/Promise/any/iter-step-err-reject.js 69 A test/built-ins/Promise/any/length.js 70 A test/built-ins/Promise/any/name.js 71 A test/built-ins/Promise/any/new-reject-function.js 72 A test/built-ins/Promise/any/prop-desc.js 73 A test/built-ins/Promise/any/reject-all-mixed.js 74 A test/built-ins/Promise/any/reject-deferred.js 75 A test/built-ins/Promise/any/reject-element-function-extensible.js 76 A test/built-ins/Promise/any/reject-element-function-length.js 77 A test/built-ins/Promise/any/reject-element-function-name.js 78 A test/built-ins/Promise/any/reject-element-function-nonconstructor.js 79 A test/built-ins/Promise/any/reject-element-function-prototype.js 80 A test/built-ins/Promise/any/resolve-from-reject-catch.js 81 A test/built-ins/Promise/any/resolve-from-resolve-reject-catch.js 82 A test/built-ins/Promise/any/resolve-ignores-late-rejection-deferred.js 83 A test/built-ins/Promise/any/resolve-ignores-late-rejection.js 84 A test/built-ins/Promise/any/returns-promise.js 85 M test/built-ins/Proxy/create-handler-is-revoked-proxy.js 86 M test/built-ins/Proxy/create-target-is-not-callable.js 87 A test/built-ins/Proxy/create-target-is-revoked-function-proxy.js 88 M test/built-ins/Proxy/create-target-is-revoked-proxy.js 89 A test/built-ins/Proxy/set/trap-is-missing-receiver-multiple-calls-index.js 90 A test/built-ins/Proxy/set/trap-is-missing-receiver-multiple-calls.js 91 R100 test/built-ins/Proxy/set/trap-is-undefined-receiver.js test/built-ins/Proxy/set/trap-is-null-receiver.js 92 A test/intl402/DateTimeFormat/constructor-options-calendar-invalid.js 93 A test/intl402/DateTimeFormat/constructor-options-numberingSystem-invalid.js 94 D test/intl402/DateTimeFormat/invalid-numbering-system-calendar-options.js 95 A test/intl402/NumberFormat/constructor-options-numberingSystem-invalid.js 96 D test/intl402/NumberFormat/invalid-numbering-system-options.js 97 M test/intl402/RelativeTimeFormat/constructor/constructor/options-numberingSystem-invalid.js 98 A test/language/expressions/class/elements/grammar-private-field-optional-chaining.js 99 A test/language/expressions/class/elements/static-as-valid-instance-field-assigned.js 100 A test/language/expressions/class/elements/static-as-valid-instance-field.js 101 A test/language/expressions/class/elements/static-as-valid-static-field-assigned.js 102 A test/language/expressions/class/elements/static-as-valid-static-field.js 103 D test/language/expressions/class/elements/syntax/early-errors/grammar-private-field-optional-chaining.js 104 A test/language/expressions/logical-assignment/lgcl-and-arguments-strict.js 105 A test/language/expressions/logical-assignment/lgcl-and-assignment-operator-bigint.js 106 A test/language/expressions/logical-assignment/lgcl-and-assignment-operator-lhs-before-rhs.js 107 A test/language/expressions/logical-assignment/lgcl-and-assignment-operator-no-set-put.js 108 A test/language/expressions/logical-assignment/lgcl-and-assignment-operator-no-set.js 109 A test/language/expressions/logical-assignment/lgcl-and-assignment-operator-non-extensible.js 110 A test/language/expressions/logical-assignment/lgcl-and-assignment-operator-non-simple-lhs.js 111 A test/language/expressions/logical-assignment/lgcl-and-assignment-operator-non-writeable-put.js 112 A test/language/expressions/logical-assignment/lgcl-and-assignment-operator-non-writeable.js 113 A test/language/expressions/logical-assignment/lgcl-and-assignment-operator-unresolved-lhs.js 114 A test/language/expressions/logical-assignment/lgcl-and-assignment-operator-unresolved-rhs-put.js 115 A test/language/expressions/logical-assignment/lgcl-and-assignment-operator-unresolved-rhs.js 116 A test/language/expressions/logical-assignment/lgcl-and-assignment-operator.js 117 A test/language/expressions/logical-assignment/lgcl-and-eval-strict.js 118 A test/language/expressions/logical-assignment/lgcl-and-non-simple.js 119 A test/language/expressions/logical-assignment/lgcl-and-whitespace.js 120 A test/language/expressions/logical-assignment/lgcl-nullish-arguments-strict.js 121 A test/language/expressions/logical-assignment/lgcl-nullish-assignment-operator-bigint.js 122 A test/language/expressions/logical-assignment/lgcl-nullish-assignment-operator-lhs-before-rhs.js 123 A test/language/expressions/logical-assignment/lgcl-nullish-assignment-operator-no-set-put.js 124 A test/language/expressions/logical-assignment/lgcl-nullish-assignment-operator-no-set.js 125 A test/language/expressions/logical-assignment/lgcl-nullish-assignment-operator-non-extensible.js 126 A test/language/expressions/logical-assignment/lgcl-nullish-assignment-operator-non-simple-lhs.js 127 A test/language/expressions/logical-assignment/lgcl-nullish-assignment-operator-non-writeable-put.js 128 A test/language/expressions/logical-assignment/lgcl-nullish-assignment-operator-non-writeable.js 129 A test/language/expressions/logical-assignment/lgcl-nullish-assignment-operator-unresolved-lhs.js 130 A test/language/expressions/logical-assignment/lgcl-nullish-assignment-operator-unresolved-rhs-put.js 131 A test/language/expressions/logical-assignment/lgcl-nullish-assignment-operator-unresolved-rhs.js 132 A test/language/expressions/logical-assignment/lgcl-nullish-assignment-operator.js 133 A test/language/expressions/logical-assignment/lgcl-nullish-eval-strict.js 134 A test/language/expressions/logical-assignment/lgcl-nullish-non-simple.js 135 A test/language/expressions/logical-assignment/lgcl-nullish-whitespace.js 136 A test/language/expressions/logical-assignment/lgcl-or-arguments-strict.js 137 A test/language/expressions/logical-assignment/lgcl-or-assignment-operator-bigint.js 138 A test/language/expressions/logical-assignment/lgcl-or-assignment-operator-lhs-before-rhs.js 139 A test/language/expressions/logical-assignment/lgcl-or-assignment-operator-no-set-put.js 140 A test/language/expressions/logical-assignment/lgcl-or-assignment-operator-no-set.js 141 A test/language/expressions/logical-assignment/lgcl-or-assignment-operator-non-extensible.js 142 A test/language/expressions/logical-assignment/lgcl-or-assignment-operator-non-simple-lhs.js 143 A test/language/expressions/logical-assignment/lgcl-or-assignment-operator-non-writeable-put.js 144 A test/language/expressions/logical-assignment/lgcl-or-assignment-operator-non-writeable.js 145 A test/language/expressions/logical-assignment/lgcl-or-assignment-operator-unresolved-lhs.js 146 A test/language/expressions/logical-assignment/lgcl-or-assignment-operator-unresolved-rhs-put.js 147 A test/language/expressions/logical-assignment/lgcl-or-assignment-operator-unresolved-rhs.js 148 A test/language/expressions/logical-assignment/lgcl-or-assignment-operator.js 149 A test/language/expressions/logical-assignment/lgcl-or-eval-strict.js 150 A test/language/expressions/logical-assignment/lgcl-or-non-simple.js 151 A test/language/expressions/logical-assignment/lgcl-or-whitespace.js 152 A test/language/expressions/template-literal/unicode-escape-no-hex-err.js 153 A test/language/literals/string/unicode-escape-no-hex-err-double.js 154 A test/language/literals/string/unicode-escape-no-hex-err-single.js 155 A test/language/statements/class/elements/grammar-private-field-optional-chaining.js 156 A test/language/statements/class/elements/static-as-valid-instance-field-assigned.js 157 A test/language/statements/class/elements/static-as-valid-instance-field.js 158 A test/language/statements/class/elements/static-as-valid-static-field-assigned.js 159 A test/language/statements/class/elements/static-as-valid-static-field.js 160 D test/language/statements/class/elements/syntax/early-errors/grammar-private-field-optional-chaining.js 161 A test/language/statements/for-await-of/iterator-close-non-throw-get-method-abrupt.js 162 A test/language/statements/for-await-of/iterator-close-non-throw-get-method-non-callable.js 163 A test/language/statements/for-await-of/iterator-close-throw-get-method-abrupt.js 164 A test/language/statements/for-await-of/iterator-close-throw-get-method-non-callable.js 165 R051 test/language/statements/for-of/iterator-close-get-method-error.js test/language/statements/for-of/iterator-close-non-throw-get-method-abrupt.js 166 A test/language/statements/for-of/iterator-close-non-throw-get-method-non-callable.js 167 A test/language/statements/for-of/iterator-close-throw-get-method-abrupt.js 168 A test/language/statements/for-of/iterator-close-throw-get-method-non-callable.js -
trunk/JSTests/test262/test/annexB/language/literals/regexp/legacy-octal-escape.js
r228028 r259529 3 3 /*--- 4 4 esid: sec-regular-expressions-patterns 5 es6id: B.1.46 5 description: Legacy Octal Escape Sequence 7 6 info: | 8 CharacterEscape[U] ::7 CharacterEscape[U] :: 9 8 ControlEscape 10 9 c ControlLetter … … 15 14 IdentityEscape[?U] 16 15 17 The production CharacterEscape::LegacyOctalEscapeSequence evaluates by 16 LegacyOctalEscapeSequence :: 17 OctalDigit [lookahead ∉ OctalDigit] 18 ZeroToThree OctalDigit [lookahead ∉ OctalDigit] 19 FourToSeven OctalDigit 20 ZeroToThree OctalDigit OctalDigit 21 22 The production CharacterEscape :: LegacyOctalEscapeSequence evaluates by 18 23 evaluating the SV of the LegacyOctalEscapeSequence (see B.1.2) and 19 24 returning its character result. 20 25 ---*/ 21 22 var match;23 26 24 27 assert.sameValue(/\1/.exec('\x01')[0], '\x01', '\\1'); … … 42 45 assert.sameValue(/\77/.exec('\x3f')[0], '\x3f', '\\77'); 43 46 44 // Sequence is bounded according to the String Value (not number of characters)47 // Sequence is bounded according to the String Value 45 48 assert.sameValue(/\400/.exec('\x200')[0], '\x200', '\\400'); 46 49 assert.sameValue(/\470/.exec('\x270')[0], '\x270', '\\470'); … … 55 58 assert.sameValue(/\307/.exec('\xc7')[0], '\xc7', '\\307'); 56 59 assert.sameValue(/\370/.exec('\xf8')[0], '\xf8', '\\370'); 60 assert.sameValue(/\377/.exec('\xff')[0], '\xff', '\\377'); 57 61 58 match = /(.)\1/.exec('a\x01 aa'); 62 // Sequence is 3 characters max, including leading zeros 63 assert.sameValue(/\0111/.exec('\x091')[0], '\x091', '\\0111'); 64 assert.sameValue(/\0022/.exec('\x022')[0], '\x022', '\\0022'); 65 assert.sameValue(/\0003/.exec('\x003')[0], '\x003', '\\0003'); 66 67 var match = /(.)\1/.exec('a\x01 aa'); 59 68 assert.sameValue( 60 69 match[0], 'aa', 'DecimalEscape takes precedence over LegacyOctalEscapeSequence' -
trunk/JSTests/test262/test/built-ins/FinalizationRegistry/gc-has-one-chance-to-call-cleanupCallback.js
r257590 r259529 34 34 var called = 0; 35 35 36 // both this cb and the finalizationRegistry callback are not exhausting the iterator to prevent 37 // the target cell from being removed from the finalizationRegistry.[[Cells]]. 38 // More info at %FinalizationRegistryCleanupIteratorPrototype%.next ( ) 39 function cb() { 36 function cb(holding) { 37 assert.sameValue(holding, 'a'); 40 38 called += 1; 41 39 } … … 55 53 } 56 54 57 // Let's add some async ticks, as the cleanupCallback is not meant to interrupt 58 // synchronous operations. 59 async function fn() { 55 emptyCells() 56 .then(async function() { 60 57 await Promise.resolve(1); 61 58 62 59 finalizationRegistry.cleanupSome(cb); 60 61 // cleanupSome will be invoked if there are empty cells left. If the 62 // cleanupCallback already ran, then cb won't be called. 63 let expectedCalled = cleanupCallback === 1 ? 0 : 1; 63 64 // This asserts the registered object was emptied in the previous GC. 64 assert.sameValue(called, 1, 'cleanupSome callback for the first time');65 assert.sameValue(called, expectedCalled, 'cleanupSome callback for the first time'); 65 66 66 67 // At this point, we can't assert if cleanupCallback was called, because it's … … 72 73 assert(cleanupCallback <= 1, 'cleanupCallback might be 1'); 73 74 74 // Restoring the cleanupCallback variable to 0 will help us asserting the finalizationRegistry75 // callback is not called again.75 // Restoring the cleanupCallback variable to 0 will help us asserting the 76 // finalizationRegistry callback is not called again. 76 77 cleanupCallback = 0; 77 78 … … 81 82 finalizationRegistry.cleanupSome(cb); 82 83 83 // This cb is called again because finalizationRegistry still holds an emptied cell, but it's 84 // not yet removed from the 85 assert.sameValue(called, 2, 'cleanupSome callback for the second time'); 84 assert.sameValue(called, expectedCalled, 'cleanupSome callback is not called anymore, no empty cells'); 86 85 assert.sameValue(cleanupCallback, 0, 'cleanupCallback is not called again #1'); 87 86 … … 91 90 finalizationRegistry.cleanupSome(cb); 92 91 93 assert.sameValue(called, 3, 'cleanupSome callback for the third time');92 assert.sameValue(called, expectedCalled, 'cleanupSome callback is not called again #2'); 94 93 assert.sameValue(cleanupCallback, 0, 'cleanupCallback is not called again #2'); 95 94 96 95 await $262.gc(); 97 }98 99 emptyCells()100 .then(async function() {101 await fn();// tick102 await Promise.resolve(4); // tick103 104 assert.sameValue(cleanupCallback, 0, 'cleanupCallback is not called again #3');105 106 finalizationRegistry.cleanupSome(cb);107 108 assert.sameValue(called, 4, 'cleanupSome callback for the fourth time');109 assert.sameValue(cleanupCallback, 0, 'cleanupCallback is not called again #4');110 111 await $262.gc();112 113 // Now we are exhausting the iterator, so cleanupSome callback will also not be called.114 finalizationRegistry.cleanupSome(iterator => {115 var exhausted = [...iterator];116 assert.sameValue(exhausted.length, 1);117 assert.sameValue(exhausted[0], 'a');118 called += 1;119 });120 121 assert.sameValue(called, 5, 'cleanupSome callback for the fifth time');122 assert.sameValue(cleanupCallback, 0, 'cleanupCallback is not called again #4');123 124 await $262.gc();125 126 await Promise.resolve(5); // tick127 await await Promise.resolve(6); // more ticks128 await await await Promise.resolve(7); // even more ticks129 130 finalizationRegistry.cleanupSome(cb);131 132 assert.sameValue(called, 5, 'cleanupSome callback is not called anymore, no empty cells');133 assert.sameValue(cleanupCallback, 0, 'cleanupCallback is not called again #5');134 96 }) 135 97 .then($DONE, resolveAsyncGC); -
trunk/JSTests/test262/test/built-ins/FinalizationRegistry/prototype/cleanupSome/cleanup-prevented-with-reference.js
r257590 r259529 19 19 ---*/ 20 20 21 var holdingsList ;22 function cb( iterator) {23 holdingsList = [...iterator];21 var holdingsList = []; 22 function cb(holding) { 23 holdingsList.push(holding); 24 24 }; 25 25 var finalizationRegistry = new FinalizationRegistry(function() {}); -
trunk/JSTests/test262/test/built-ins/FinalizationRegistry/prototype/cleanupSome/cleanup-prevented-with-unregister.js
r257590 r259529 47 47 assert.sameValue(res, true, 'unregister target before iterating over it in cleanup'); 48 48 49 finalizationRegistry.cleanupSome(function cb( iterator) {49 finalizationRegistry.cleanupSome(function cb(holding) { 50 50 called += 1; 51 51 }); -
trunk/JSTests/test262/test/built-ins/FinalizationRegistry/prototype/cleanupSome/holdings-multiple-values.js
r259528 r259529 17 17 18 18 ... 19 3. Let iterator be ! CreateFinalizationRegistryCleanupIterator(finalizationRegistry). 20 ... 21 6. Let result be Call(callback, undefined, « iterator »). 19 3. While finalizationRegistry.[[Cells]] contains a Record cell such that cell.[[WeakRefTarget]] is ~empty~, then an implementation may perform the following steps, 20 a. Choose any such cell. 21 b. Remove cell from finalizationRegistry.[[Cells]]. 22 c. Perform ? Call(callback, undefined, << cell.[[HeldValue]] >>). 22 23 ... 23 24 24 %FinalizationRegistryCleanupIteratorPrototype%.next ( )25 25 26 8. If finalizationRegistry.[[Cells]] contains a Record cell such that cell.[[Target]] is empty,27 a. Choose any such cell.28 b. Remove cell from finalizationRegistry.[[Cells]].29 c. Return CreateIterResultObject(cell.[[Holdings]], false).30 9. Otherwise, return CreateIterResultObject(undefined, true).31 26 features: [FinalizationRegistry, Symbol, host-gc-required] 32 27 includes: [async-gc.js] … … 35 30 36 31 function check(value, expectedName) { 37 var holdings ;32 var holdings = []; 38 33 var called = 0; 39 34 var finalizationRegistry = new FinalizationRegistry(function() {}); 40 35 41 function callback( iterator) {36 function callback(holding) { 42 37 called += 1; 43 holdings = [...iterator];38 holdings.push(holding); 44 39 } 45 40 -
trunk/JSTests/test262/test/built-ins/FinalizationRegistry/prototype/cleanupSome/reentrancy.js
r259528 r259529 5 5 esid: sec-properties-of-the-finalization-registry-constructor 6 6 description: > 7 The cleanupSome() method throws if cleanup is currently in progress.7 The cleanupSome() method can be reentered 8 8 info: | 9 9 FinalizationRegistry.prototype.cleanupSome ( [ callback ] ) 10 11 1. Let finalizationRegistry be the this value.12 ...13 4. If finalizationRegistry.[[IsFinalizationRegistryCleanupJobActive]] is true,14 throw a TypeError exception.15 10 16 11 features: [FinalizationRegistry, host-gc-required] … … 23 18 var finalizationRegistry = new FinalizationRegistry(function() {}); 24 19 25 function callback( iterator) {20 function callback(holding) { 26 21 called += 1; 27 22 … … 29 24 // Atempt to re-enter the callback. 30 25 var nestedCallbackRan = false; 31 assert.throws(TypeError, () => { 32 finalizationRegistry.cleanupSome(() => { nestedCallbackRan = true }); 33 }); 34 assert.sameValue(nestedCallbackRan, false); 26 finalizationRegistry.cleanupSome(() => { nestedCallbackRan = true }); 27 assert.sameValue(nestedCallbackRan, true); 35 28 } 36 29 … … 40 33 function emptyCells() { 41 34 var o1 = {}; 35 var o2 = {}; 36 // Register more than one objects to test reentrancy. 42 37 finalizationRegistry.register(o1, 'holdings 1'); 38 finalizationRegistry.register(o2, 'holdings 2'); 43 39 44 40 var prom = asyncGC(o1); -
trunk/JSTests/test262/test/built-ins/FinalizationRegistry/prototype/cleanupSome/return-undefined-with-gc.js
r257590 r259529 40 40 } 41 41 42 var tests = []; 43 44 tests.push(emptyCells().then(function() { 42 emptyCells().then(function() { 45 43 called = 0; 46 44 assert.sameValue(finalizationRegistry.cleanupSome(cb), undefined, 'regular callback'); 47 45 assert.sameValue(called, 1); 48 })); 49 50 tests.push(emptyCells().then(function() { 46 }).then(emptyCells).then(function() { 51 47 called = 0; 52 48 assert.sameValue(finalizationRegistry.cleanupSome(fn), undefined, 'regular callback, same FG cleanup function'); 53 49 assert.sameValue(called, 1); 54 })); 55 56 tests.push(emptyCells().then(function() { 50 }).then(emptyCells).then(function() { 57 51 called = 0; 58 52 assert.sameValue(finalizationRegistry.cleanupSome(), undefined, 'undefined (implicit) callback, defer to FB callback'); 59 53 assert.sameValue(called, 1); 60 })); 61 62 tests.push(emptyCells().then(function() { 54 }).then(emptyCells).then(function() { 63 55 called = 0; 64 56 assert.sameValue(finalizationRegistry.cleanupSome(undefined), undefined, 'undefined (explicit) callback, defer to FB callback'); 65 57 assert.sameValue(called, 1); 66 })); 67 68 tests.push(emptyCells().then(function() { 69 assert.sameValue(finalizationRegistry.cleanupSome(() => 1), undefined, 'arrow function'); 70 })); 71 72 tests.push(emptyCells().then(function() { 58 }).then(emptyCells).then(function() { 59 assert.sameValue(finalizationRegistry.cleanupSome(() => 1), undefined, 'arrow function'); 60 }).then(emptyCells).then(function() { 73 61 assert.sameValue(finalizationRegistry.cleanupSome(async function() {}), undefined, 'async function'); 74 })); 75 76 tests.push(emptyCells().then(function() { 62 }).then(emptyCells).then(function() { 77 63 assert.sameValue(finalizationRegistry.cleanupSome(function *() {}), undefined, 'generator'); 78 })); 79 80 tests.push(emptyCells().then(function() { 64 }).then(emptyCells).then(function() { 81 65 assert.sameValue(finalizationRegistry.cleanupSome(async function *() {}), undefined, 'async generator'); 82 })); 83 84 Promise.all(tests).then(() => { $DONE(); }, resolveAsyncGC); 66 }).then($DONE, resolveAsyncGC); -
trunk/JSTests/test262/test/built-ins/FinalizationRegistry/prototype/unregister/unregister-cleaned-up-cell.js
r257590 r259529 16 16 17 17 ... 18 3. Let iterator be ! CreateFinalizationRegistryCleanupIterator(finalizationRegistry). 19 ... 20 6. Let result be Call(callback, undefined, « iterator »). 21 ... 22 23 %FinalizationRegistryCleanupIteratorPrototype%.next ( ) 24 25 8. If finalizationRegistry.[[Cells]] contains a Record cell such that cell.[[Target]] is empty, 18 3. While finalizationRegistry.[[Cells]] contains a Record cell such that cell.[[WeakRefTarget]] is ~empty~, then an implementation may perform the following steps, 26 19 a. Choose any such cell. 27 20 b. Remove cell from finalizationRegistry.[[Cells]]. 28 c. Return CreateIterResultObject(cell.[[Holdings]], false).29 9. Otherwise, return CreateIterResultObject(undefined, true).21 c. Perform ? Call(callback, undefined, << cell.[[HeldValue]] >>). 22 ... 30 23 31 24 FinalizationRegistry.prototype.unregister ( unregisterToken ) … … 58 51 emptyCells().then(function() { 59 52 var called = 0; 60 var holdings ;61 finalizationRegistry.cleanupSome(function cb( iterator) {53 var holdings = []; 54 finalizationRegistry.cleanupSome(function cb(holding) { 62 55 called += 1; 63 holdings = [...iterator];56 holdings.push(holding); 64 57 }); 65 58 -
trunk/JSTests/test262/test/built-ins/Proxy/create-handler-is-revoked-proxy.js
r239425 r259529 2 2 // This code is governed by the BSD license found in the LICENSE file. 3 3 /*--- 4 es 6id: 9.5.154 esid: sec-proxycreate 5 5 description: > 6 Proxy ( target, handler ) 7 ... 8 4. If handler is a Proxy exotic object and the value of the 9 [[ProxyHandler]] internal slot of handler is null, throw a 10 TypeError exception. 11 ... 6 A Proxy is created with its [[ProxyHandler]] as revoked Proxy. 7 info: | 8 ProxyCreate ( target, handler ) 9 10 [...] 11 3. Let P be ! MakeBasicObject(« [[ProxyHandler]], [[ProxyTarget]] »). 12 [...] 13 7. Set P.[[ProxyHandler]] to handler. 14 8. Return P. 12 15 features: [Proxy] 13 16 ---*/ 14 17 15 18 var revocable = Proxy.revocable({}, {}); 16 17 19 revocable.revoke(); 18 20 19 assert.throws(TypeError, function() { 20 new Proxy({}, revocable.proxy); 21 }); 21 var proxy = new Proxy({}, revocable.proxy); 22 assert.sameValue(typeof proxy, "object"); -
trunk/JSTests/test262/test/built-ins/Proxy/create-target-is-not-callable.js
r239425 r259529 2 2 // This code is governed by the BSD license found in the LICENSE file. 3 3 /*--- 4 es 6id: 9.5.154 esid: sec-proxycreate 5 5 description: > 6 6 A Proxy exotic object is only callable if the given target is callable. … … 23 23 24 24 assert.throws(TypeError, function() { 25 p .call();25 p(); 26 26 }); -
trunk/JSTests/test262/test/built-ins/Proxy/create-target-is-revoked-proxy.js
r239425 r259529 2 2 // This code is governed by the BSD license found in the LICENSE file. 3 3 /*--- 4 es 6id: 9.5.154 esid: sec-proxycreate 5 5 description: > 6 Proxy ( target, handler ) 7 ... 8 2. If target is a Proxy exotic object and the value of the 9 [[ProxyHandler]] internal slot of target is null, throw a 10 TypeError exception. 11 ... 6 A Proxy is created with its [[ProxyTarget]] as revoked Proxy. 7 info: | 8 ProxyCreate ( target, handler ) 9 10 [...] 11 3. Let P be ! MakeBasicObject(« [[ProxyHandler]], [[ProxyTarget]] »). 12 [...] 13 6. Set P.[[ProxyTarget]] to target. 14 [...] 15 8. Return P. 12 16 features: [Proxy] 13 17 ---*/ 14 18 15 19 var revocable = Proxy.revocable({}, {}); 16 17 20 revocable.revoke(); 18 21 19 assert.throws(TypeError, function() { 20 new Proxy(revocable.proxy, {}); 21 }); 22 var proxy = new Proxy(revocable.proxy, {}); 23 assert.sameValue(typeof proxy, "object"); -
trunk/JSTests/test262/test/intl402/RelativeTimeFormat/constructor/constructor/options-numberingSystem-invalid.js
r257590 r259529 11 11 ... 12 12 8. If numberingSystem is not undefined, then 13 a. If numberingSystem does not match the [(3*8alphanum) *("-" (3*8alphanum))] sequence, throw a RangeError exception.13 a. If numberingSystem does not match the type sequence (from UTS 35 Unicode Locale Identifier, section 3.2), throw a RangeError exception. 14 14 15 15 features: [Intl.RelativeTimeFormat] … … 35 35 "latn-ca-", 36 36 "latn-ca-gregory", 37 "latné", 38 "latn编号", 37 39 ]; 38 40 for (const numberingSystem of invalidNumberingSystemOptions) { -
trunk/JSTests/test262/test/language/statements/for-of/iterator-close-non-throw-get-method-abrupt.js
r259528 r259529 2 2 // This code is governed by the BSD license found in the LICENSE file. 3 3 /*--- 4 es 6id: 13.6.4.134 esid: sec-iteratorclose 5 5 description: > 6 If retrieving an iterator's `return` method generates an error while 7 closing the iterator, the error should be forwarded to the runtime. 6 If retrieving an iterator's `return` method generates an error while 7 closing the iterator with non-throw completion, the error should be 8 forwarded to the runtime. 9 info: | 10 IteratorClose ( iteratorRecord, completion ) 11 12 [...] 13 4. Let innerResult be GetMethod(iterator, "return"). 14 5. If innerResult.[[Type]] is normal, 15 [...] 16 6. If completion.[[Type]] is throw, return Completion(completion). 17 7. If innerResult.[[Type]] is throw, return Completion(innerResult). 18 19 GetMethod ( V, P ) 20 21 [...] 22 2. Let func be ? GetV(V, P). 8 23 features: [Symbol.iterator] 9 24 ---*/ -
trunk/JSTests/test262/test262-Revision.txt
r259032 r259529 1 test262 remote url: https://github.com/tc39/test262.git2 test262 revision: 96cf75770ecc70438b00f431c266b834e41b91ce1 test262 remote url: git@github.com:tc39/test262.git 2 test262 revision: 62b8fce3897152da2cc4f8bd1e27878a409ab975
Note: See TracChangeset
for help on using the changeset viewer.