⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 271225 in webkit


Ignore:
Timestamp:
Jan 6, 2021, 10:28:36 PM (6 years ago)
Author:
ysuzuki@apple.com
Message:

[JSC] Update test262
https://bugs.webkit.org/show_bug.cgi?id=220398

Reviewed by Mark Lam.

  • test262/expectations.yaml:
  • test262/harness/testIntl.js:
  • test262/latest-changes-summary.txt:
  • test262/test/built-ins/TypedArray/prototype/includes/BigInt/detached-buffer-during-fromIndex-returns-false-for-zero.js: Added.

(testWithBigIntTypedArrayConstructors):

  • test262/test/built-ins/TypedArray/prototype/includes/BigInt/detached-buffer-during-fromIndex-returns-true-for-undefined.js: Added.

(testWithBigIntTypedArrayConstructors):

  • test262/test/built-ins/TypedArray/prototype/includes/detached-buffer-during-fromIndex-returns-false-for-zero.js: Added.

(testWithTypedArrayConstructors):

  • test262/test/built-ins/TypedArray/prototype/includes/detached-buffer-during-fromIndex-returns-true-for-undefined.js: Added.

(testWithTypedArrayConstructors):

  • test262/test/built-ins/TypedArray/prototype/includes/detached-buffer-tointeger.js: Removed.
  • test262/test/built-ins/TypedArray/prototype/indexOf/BigInt/detached-buffer-during-fromIndex-returns-minus-one-for-undefined.js: Added.

(testWithBigIntTypedArrayConstructors):

  • test262/test/built-ins/TypedArray/prototype/indexOf/BigInt/detached-buffer-during-fromIndex-returns-minus-one-for-zero.js: Added.

(testWithBigIntTypedArrayConstructors):

  • test262/test/built-ins/TypedArray/prototype/indexOf/detached-buffer-during-fromIndex-returns-minus-one-for-undefined.js: Added.

(testWithTypedArrayConstructors):

  • test262/test/built-ins/TypedArray/prototype/indexOf/detached-buffer-during-fromIndex-returns-minus-one-for-zero.js: Added.

(testWithTypedArrayConstructors):

  • test262/test/built-ins/TypedArray/prototype/join/BigInt/detached-buffer-during-fromIndex-returns-single-comma.js: Added.

(testWithBigIntTypedArrayConstructors):

  • test262/test/built-ins/TypedArray/prototype/join/BigInt/detached-buffer.js:

(let.obj.toString):
(testWithBigIntTypedArrayConstructors):
(obj.toString): Deleted.

  • test262/test/built-ins/TypedArray/prototype/join/detached-buffer-during-fromIndex-returns-single-comma.js: Added.

(testWithTypedArrayConstructors):

  • test262/test/built-ins/TypedArray/prototype/join/detached-buffer.js:

(let.obj.toString):
(testWithTypedArrayConstructors):
(obj.toString): Deleted.

  • test262/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/detached-buffer-during-fromIndex-returns-minus-one-for-undefined.js: Added.

(testWithBigIntTypedArrayConstructors):

  • test262/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/detached-buffer-during-fromIndex-returns-minus-one-for-zero.js: Added.

(testWithBigIntTypedArrayConstructors):

  • test262/test/built-ins/TypedArray/prototype/lastIndexOf/detached-buffer-during-fromIndex-returns-minus-one-for-undefined.js: Added.

(testWithTypedArrayConstructors):

  • test262/test/built-ins/TypedArray/prototype/lastIndexOf/detached-buffer-during-fromIndex-returns-minus-one-for-zero.js: Added.

(testWithTypedArrayConstructors):

  • test262/test/built-ins/TypedArrayConstructors/internals/GetOwnProperty/BigInt/index-prop-desc.js:

(testWithBigIntTypedArrayConstructors):

  • test262/test/built-ins/TypedArrayConstructors/internals/Set/detached-buffer.js:

(testWithTypedArrayConstructors):

  • test262/test/intl402/DateTimeFormat/prototype/formatRange/date-same-returns-single-date.js: Added.
  • test262/test/intl402/DateTimeFormat/prototype/formatRangeToParts/date-same-returns-single-date.js: Added.

(zip):
(compare):

  • test262/test/intl402/Intl/getCanonicalLocales/canonicalized-tags.js:
  • test262/test/intl402/Intl/getCanonicalLocales/preferred-grandfathered.js:
  • test262/test/intl402/Intl/getCanonicalLocales/preferred-variant.js:
  • test262/test/intl402/Locale/extensions-grandfathered.js:
  • test262/test/intl402/Locale/likely-subtags-grandfathered.js:

(of.regularGrandfathered.const.extra.of.extras.i.test):

  • test262/test262-Revision.txt:
Location:
trunk/JSTests
Files:
16 added
1 deleted
14 edited

Legend:

Unmodified
Added
Removed
  • trunk/JSTests/ChangeLog

    r271224 r271225  
     12021-01-06  Yusuke Suzuki  <ysuzuki@apple.com>
     2
     3        [JSC] Update test262
     4        https://bugs.webkit.org/show_bug.cgi?id=220398
     5
     6        Reviewed by Mark Lam.
     7
     8        * test262/expectations.yaml:
     9        * test262/harness/testIntl.js:
     10        * test262/latest-changes-summary.txt:
     11        * test262/test/built-ins/TypedArray/prototype/includes/BigInt/detached-buffer-during-fromIndex-returns-false-for-zero.js: Added.
     12        (testWithBigIntTypedArrayConstructors):
     13        * test262/test/built-ins/TypedArray/prototype/includes/BigInt/detached-buffer-during-fromIndex-returns-true-for-undefined.js: Added.
     14        (testWithBigIntTypedArrayConstructors):
     15        * test262/test/built-ins/TypedArray/prototype/includes/detached-buffer-during-fromIndex-returns-false-for-zero.js: Added.
     16        (testWithTypedArrayConstructors):
     17        * test262/test/built-ins/TypedArray/prototype/includes/detached-buffer-during-fromIndex-returns-true-for-undefined.js: Added.
     18        (testWithTypedArrayConstructors):
     19        * test262/test/built-ins/TypedArray/prototype/includes/detached-buffer-tointeger.js: Removed.
     20        * test262/test/built-ins/TypedArray/prototype/indexOf/BigInt/detached-buffer-during-fromIndex-returns-minus-one-for-undefined.js: Added.
     21        (testWithBigIntTypedArrayConstructors):
     22        * test262/test/built-ins/TypedArray/prototype/indexOf/BigInt/detached-buffer-during-fromIndex-returns-minus-one-for-zero.js: Added.
     23        (testWithBigIntTypedArrayConstructors):
     24        * test262/test/built-ins/TypedArray/prototype/indexOf/detached-buffer-during-fromIndex-returns-minus-one-for-undefined.js: Added.
     25        (testWithTypedArrayConstructors):
     26        * test262/test/built-ins/TypedArray/prototype/indexOf/detached-buffer-during-fromIndex-returns-minus-one-for-zero.js: Added.
     27        (testWithTypedArrayConstructors):
     28        * test262/test/built-ins/TypedArray/prototype/join/BigInt/detached-buffer-during-fromIndex-returns-single-comma.js: Added.
     29        (testWithBigIntTypedArrayConstructors):
     30        * test262/test/built-ins/TypedArray/prototype/join/BigInt/detached-buffer.js:
     31        (let.obj.toString):
     32        (testWithBigIntTypedArrayConstructors):
     33        (obj.toString): Deleted.
     34        * test262/test/built-ins/TypedArray/prototype/join/detached-buffer-during-fromIndex-returns-single-comma.js: Added.
     35        (testWithTypedArrayConstructors):
     36        * test262/test/built-ins/TypedArray/prototype/join/detached-buffer.js:
     37        (let.obj.toString):
     38        (testWithTypedArrayConstructors):
     39        (obj.toString): Deleted.
     40        * test262/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/detached-buffer-during-fromIndex-returns-minus-one-for-undefined.js: Added.
     41        (testWithBigIntTypedArrayConstructors):
     42        * test262/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/detached-buffer-during-fromIndex-returns-minus-one-for-zero.js: Added.
     43        (testWithBigIntTypedArrayConstructors):
     44        * test262/test/built-ins/TypedArray/prototype/lastIndexOf/detached-buffer-during-fromIndex-returns-minus-one-for-undefined.js: Added.
     45        (testWithTypedArrayConstructors):
     46        * test262/test/built-ins/TypedArray/prototype/lastIndexOf/detached-buffer-during-fromIndex-returns-minus-one-for-zero.js: Added.
     47        (testWithTypedArrayConstructors):
     48        * test262/test/built-ins/TypedArrayConstructors/internals/GetOwnProperty/BigInt/index-prop-desc.js:
     49        (testWithBigIntTypedArrayConstructors):
     50        * test262/test/built-ins/TypedArrayConstructors/internals/Set/detached-buffer.js:
     51        (testWithTypedArrayConstructors):
     52        * test262/test/intl402/DateTimeFormat/prototype/formatRange/date-same-returns-single-date.js: Added.
     53        * test262/test/intl402/DateTimeFormat/prototype/formatRangeToParts/date-same-returns-single-date.js: Added.
     54        (zip):
     55        (compare):
     56        * test262/test/intl402/Intl/getCanonicalLocales/canonicalized-tags.js:
     57        * test262/test/intl402/Intl/getCanonicalLocales/preferred-grandfathered.js:
     58        * test262/test/intl402/Intl/getCanonicalLocales/preferred-variant.js:
     59        * test262/test/intl402/Locale/extensions-grandfathered.js:
     60        * test262/test/intl402/Locale/likely-subtags-grandfathered.js:
     61        (of.regularGrandfathered.const.extra.of.extras.i.test):
     62        * test262/test262-Revision.txt:
     63
    1642021-01-06  Yusuke Suzuki  <ysuzuki@apple.com>
    265
  • trunk/JSTests/test262/expectations.yaml

    r271119 r271225  
    849849  strict mode: 'Test262Error: The value of Intl.getCanonicalLocales(tag)[0] equals the value of `canonical` Expected SameValue(«en-US-u-va-posix», «posix») to be true'
    850850test/intl402/Intl/getCanonicalLocales/preferred-grandfathered.js:
    851   default: 'Test262Error: Expected SameValue(«cmn», «zh») to be true'
    852   strict mode: 'Test262Error: Expected SameValue(«cmn», «zh») to be true'
    853 test/intl402/Intl/getCanonicalLocales/preferred-variant.js:
    854   default: 'Test262Error: Expected SameValue(«ja-Latn-alalc97», «ja-Latn-alalc97-hepburn») to be true'
    855   strict mode: 'Test262Error: Expected SameValue(«ja-Latn-alalc97», «ja-Latn-alalc97-hepburn») to be true'
     851  default: 'Test262Error: Expected SameValue(«xtg-x-cel-gaulish», «xtg») to be true'
     852  strict mode: 'Test262Error: Expected SameValue(«xtg-x-cel-gaulish», «xtg») to be true'
    856853test/intl402/Intl/getCanonicalLocales/transformed-ext-canonical.js:
    857854  default: 'Test262Error: Expected SameValue(«sl-t-sl-rozaj-biske-1994», «sl-t-sl-1994-biske-rozaj») to be true'
     
    878875  default: 'Test262Error: new Intl.Locale("sl-ROZAJ-BISKE-1994").toString() returns "sl-1994-biske-rozaj" Expected SameValue(«sl-rozaj-biske-1994», «sl-1994-biske-rozaj») to be true'
    879876  strict mode: 'Test262Error: new Intl.Locale("sl-ROZAJ-BISKE-1994").toString() returns "sl-1994-biske-rozaj" Expected SameValue(«sl-rozaj-biske-1994», «sl-1994-biske-rozaj») to be true'
     877test/intl402/Locale/extensions-grandfathered.js:
     878  default: 'Test262Error: Expected SameValue(«fr-Cyrl-FR-u-nu-latn-x-cel-gaulish», «fr-Cyrl-FR-u-nu-latn») to be true'
     879  strict mode: 'Test262Error: Expected SameValue(«fr-Cyrl-FR-u-nu-latn-x-cel-gaulish», «fr-Cyrl-FR-u-nu-latn») to be true'
    880880test/intl402/Locale/likely-subtags-grandfathered.js:
    881   default: 'Test262Error: Expected SameValue(«cmn», «zh») to be true'
    882   strict mode: 'Test262Error: Expected SameValue(«cmn», «zh») to be true'
     881  default: 'Test262Error: Expected SameValue(«xtg-x-cel-gaulish», «xtg») to be true'
     882  strict mode: 'Test262Error: Expected SameValue(«xtg-x-cel-gaulish», «xtg») to be true'
    883883test/intl402/Locale/likely-subtags.js:
    884884  default: 'Test262Error: "en-u-co".maximize() should be "en-Latn-US-u-co" Expected SameValue(«en-Latn-US-u-co-yes», «en-Latn-US-u-co») to be true'
  • trunk/JSTests/test262/harness/testIntl.js

    r266503 r271225  
    329329
    330330    "art-lojban": "jbo",
    331     "cel-gaulish": "xtg-x-cel-gaulish",
     331    "cel-gaulish": "xtg",
    332332    "zh-guoyu": "zh",
    333333    "zh-hakka": "hak",
  • trunk/JSTests/test262/latest-changes-summary.txt

    r270695 r271225  
    1 A test/built-ins/Array/prototype/reverse/array-has-one-entry.js
    2 M test/built-ins/Array/prototype/sort/bug_596_1.js
    3 A test/built-ins/Math/max/Math.max_each-element-coerced.js
    4 A test/built-ins/Math/min/Math.min_each-element-coerced.js
    5 M test/built-ins/String/prototype/at/prop-desc.js
    6 M test/built-ins/TypedArray/prototype/at/prop-desc.js
    7 M test/built-ins/TypedArray/prototype/fill/BigInt/fill-values-non-numeric-throw.js
    8 M test/built-ins/TypedArray/prototype/fill/BigInt/fill-values-non-numeric.js
    9 M test/built-ins/TypedArray/prototype/fill/BigInt/fill-values-symbol-throws.js
    10 M test/built-ins/TypedArray/prototype/fill/BigInt/return-abrupt-from-set-value.js
    11 M test/built-ins/TypedArray/prototype/fill/fill-values-non-numeric.js
    12 M test/built-ins/TypedArray/prototype/fill/fill-values-symbol-throws.js
    13 M test/built-ins/TypedArray/prototype/fill/return-abrupt-from-set-value.js
    14 M test/built-ins/TypedArray/prototype/includes/detached-buffer-tointeger.js
    15 M test/built-ins/TypedArray/prototype/map/return-new-typedarray-conversion-operation-consistent-nan.js
    16 M test/built-ins/TypedArray/prototype/map/return-new-typedarray-conversion-operation.js
    17 M test/built-ins/TypedArrayConstructors/ctors/object-arg/conversion-operation-consistent-nan.js
    18 M test/built-ins/TypedArrayConstructors/ctors/object-arg/conversion-operation.js
    19 M test/built-ins/TypedArrayConstructors/ctors/object-arg/throws-setting-obj-to-primitive-typeerror.js
    20 M test/built-ins/TypedArrayConstructors/ctors/object-arg/throws-setting-obj-to-primitive.js
    21 M test/built-ins/TypedArrayConstructors/ctors/object-arg/throws-setting-obj-tostring.js
    22 M test/built-ins/TypedArrayConstructors/ctors/object-arg/throws-setting-obj-valueof-typeerror.js
    23 M test/built-ins/TypedArrayConstructors/ctors/object-arg/throws-setting-obj-valueof.js
    24 M test/built-ins/TypedArrayConstructors/ctors-bigint/object-arg/bigint-tobigint64.js
    25 M test/built-ins/TypedArrayConstructors/ctors-bigint/object-arg/bigint-tobiguint64.js
    26 M test/built-ins/TypedArrayConstructors/ctors-bigint/object-arg/boolean-tobigint.js
    27 M test/built-ins/TypedArrayConstructors/ctors-bigint/object-arg/null-tobigint.js
    28 M test/built-ins/TypedArrayConstructors/ctors-bigint/object-arg/number-tobigint.js
    29 M test/built-ins/TypedArrayConstructors/ctors-bigint/object-arg/string-nan-tobigint.js
    30 M test/built-ins/TypedArrayConstructors/ctors-bigint/object-arg/string-tobigint.js
    31 M test/built-ins/TypedArrayConstructors/ctors-bigint/object-arg/symbol-tobigint.js
    32 M test/built-ins/TypedArrayConstructors/ctors-bigint/object-arg/throws-setting-obj-to-primitive-typeerror.js
    33 M test/built-ins/TypedArrayConstructors/ctors-bigint/object-arg/throws-setting-obj-to-primitive.js
    34 M test/built-ins/TypedArrayConstructors/ctors-bigint/object-arg/throws-setting-obj-tostring.js
    35 M test/built-ins/TypedArrayConstructors/ctors-bigint/object-arg/throws-setting-obj-valueof-typeerror.js
    36 M test/built-ins/TypedArrayConstructors/ctors-bigint/object-arg/throws-setting-obj-valueof.js
    37 M test/built-ins/TypedArrayConstructors/ctors-bigint/object-arg/undefined-tobigint.js
    38 M test/built-ins/TypedArrayConstructors/from/BigInt/source-value-is-symbol-throws.js
    39 M test/built-ins/TypedArrayConstructors/from/nan-conversion.js
    40 M test/built-ins/TypedArrayConstructors/from/source-value-is-symbol-throws.js
    41 M test/built-ins/TypedArrayConstructors/internals/DefineOwnProperty/BigInt/desc-value-throws.js
    42 M test/built-ins/TypedArrayConstructors/internals/DefineOwnProperty/BigInt/detached-buffer-realm.js
    43 M test/built-ins/TypedArrayConstructors/internals/DefineOwnProperty/BigInt/detached-buffer.js
    44 M test/built-ins/TypedArrayConstructors/internals/DefineOwnProperty/BigInt/set-value.js
    45 M test/built-ins/TypedArrayConstructors/internals/DefineOwnProperty/BigInt/tonumber-value-detached-buffer.js
    46 M test/built-ins/TypedArrayConstructors/internals/DefineOwnProperty/conversion-operation.js
    47 M test/built-ins/TypedArrayConstructors/internals/DefineOwnProperty/desc-value-throws.js
    48 M test/built-ins/TypedArrayConstructors/internals/DefineOwnProperty/detached-buffer-realm.js
    49 M test/built-ins/TypedArrayConstructors/internals/DefineOwnProperty/detached-buffer.js
    50 M test/built-ins/TypedArrayConstructors/internals/DefineOwnProperty/set-value.js
    51 M test/built-ins/TypedArrayConstructors/internals/DefineOwnProperty/tonumber-value-detached-buffer.js
    52 M test/built-ins/TypedArrayConstructors/internals/Set/BigInt/detached-buffer-realm.js
    53 M test/built-ins/TypedArrayConstructors/internals/Set/BigInt/indexed-value.js
    54 M test/built-ins/TypedArrayConstructors/internals/Set/BigInt/key-is-minus-zero.js
    55 M test/built-ins/TypedArrayConstructors/internals/Set/BigInt/key-is-not-integer.js
    56 M test/built-ins/TypedArrayConstructors/internals/Set/BigInt/key-is-out-of-bounds.js
    57 M test/built-ins/TypedArrayConstructors/internals/Set/BigInt/tonumber-value-detached-buffer.js
    58 M test/built-ins/TypedArrayConstructors/internals/Set/BigInt/tonumber-value-throws.js
    59 M test/built-ins/TypedArrayConstructors/internals/Set/conversion-operation-consistent-nan.js
    60 M test/built-ins/TypedArrayConstructors/internals/Set/conversion-operation.js
    61 M test/built-ins/TypedArrayConstructors/internals/Set/detached-buffer-realm.js
    62 M test/built-ins/TypedArrayConstructors/internals/Set/indexed-value.js
    63 M test/built-ins/TypedArrayConstructors/internals/Set/key-is-minus-zero.js
    64 M test/built-ins/TypedArrayConstructors/internals/Set/key-is-not-integer.js
    65 M test/built-ins/TypedArrayConstructors/internals/Set/key-is-out-of-bounds.js
    66 M test/built-ins/TypedArrayConstructors/internals/Set/tonumber-value-detached-buffer.js
    67 M test/built-ins/TypedArrayConstructors/internals/Set/tonumber-value-throws.js
    68 M test/built-ins/TypedArrayConstructors/of/BigInt/argument-is-symbol-throws.js
    69 M test/built-ins/TypedArrayConstructors/of/BigInt/new-instance.js
    70 M test/built-ins/TypedArrayConstructors/of/argument-is-symbol-throws.js
    71 M test/built-ins/TypedArrayConstructors/of/nan-conversion.js
    72 M test/built-ins/TypedArrayConstructors/of/new-instance.js
    73 M test/built-ins/parseInt/S15.1.2.2_A2_T2.js
    74 M test/intl402/DateTimeFormat/prototype/formatRange/date-x-greater-than-y-throws.js
    75 M test/intl402/DateTimeFormat/prototype/formatRangeToParts/date-x-greater-than-y-throws.js
    76 A test/language/arguments-object/mapped/enumerable-configurable-accessor-descriptor.js
    77 A test/language/arguments-object/mapped/nonconfigurable-descriptors-define-failure.js
    78 A test/language/arguments-object/mapped/writable-enumerable-configurable-descriptor.js
    79 A test/language/destructuring/binding/syntax/destructuring-array-parameters-function-arguments-length.js
    80 A test/language/destructuring/binding/syntax/destructuring-object-parameters-function-arguments-length.js
    81 A test/language/expressions/async-function/named-reassign-fn-name-in-body-in-arrow.js
    82 A test/language/expressions/async-function/named-reassign-fn-name-in-body-in-eval.js
    83 A test/language/expressions/async-function/named-reassign-fn-name-in-body.js
    84 A test/language/expressions/async-function/named-strict-error-reassign-fn-name-in-body-in-arrow.js
    85 A test/language/expressions/async-function/named-strict-error-reassign-fn-name-in-body-in-eval.js
    86 A test/language/expressions/async-function/named-strict-error-reassign-fn-name-in-body.js
    87 A test/language/expressions/async-generator/named-no-strict-reassign-fn-name-in-body-in-arrow.js
    88 A test/language/expressions/async-generator/named-no-strict-reassign-fn-name-in-body-in-eval.js
    89 A test/language/expressions/async-generator/named-no-strict-reassign-fn-name-in-body.js
    90 A test/language/expressions/async-generator/named-strict-error-reassign-fn-name-in-body-in-arrow.js
    91 A test/language/expressions/async-generator/named-strict-error-reassign-fn-name-in-body-in-eval.js
    92 A test/language/expressions/async-generator/named-strict-error-reassign-fn-name-in-body.js
    93 A test/language/expressions/function/named-no-strict-reassign-fn-name-in-body-in-arrow.js
    94 A test/language/expressions/function/named-no-strict-reassign-fn-name-in-body-in-eval.js
    95 A test/language/expressions/function/named-no-strict-reassign-fn-name-in-body.js
    96 A test/language/expressions/function/named-strict-error-reassign-fn-name-in-body-in-arrow.js
    97 A test/language/expressions/function/named-strict-error-reassign-fn-name-in-body-in-eval.js
    98 A test/language/expressions/function/named-strict-error-reassign-fn-name-in-body.js
    99 A test/language/expressions/generators/named-no-strict-reassign-fn-name-in-body-in-arrow.js
    100 A test/language/expressions/generators/named-no-strict-reassign-fn-name-in-body-in-eval.js
    101 A test/language/expressions/generators/named-no-strict-reassign-fn-name-in-body.js
    102 A test/language/expressions/generators/named-strict-error-reassign-fn-name-in-body-in-arrow.js
    103 A test/language/expressions/generators/named-strict-error-reassign-fn-name-in-body-in-eval.js
    104 A test/language/expressions/generators/named-strict-error-reassign-fn-name-in-body.js
     1M harness/testIntl.js
     2A test/built-ins/TypedArray/prototype/includes/BigInt/detached-buffer-during-fromIndex-returns-false-for-zero.js
     3A test/built-ins/TypedArray/prototype/includes/BigInt/detached-buffer-during-fromIndex-returns-true-for-undefined.js
     4A test/built-ins/TypedArray/prototype/includes/detached-buffer-during-fromIndex-returns-false-for-zero.js
     5A test/built-ins/TypedArray/prototype/includes/detached-buffer-during-fromIndex-returns-true-for-undefined.js
     6D test/built-ins/TypedArray/prototype/includes/detached-buffer-tointeger.js
     7A test/built-ins/TypedArray/prototype/indexOf/BigInt/detached-buffer-during-fromIndex-returns-minus-one-for-undefined.js
     8A test/built-ins/TypedArray/prototype/indexOf/BigInt/detached-buffer-during-fromIndex-returns-minus-one-for-zero.js
     9A test/built-ins/TypedArray/prototype/indexOf/detached-buffer-during-fromIndex-returns-minus-one-for-undefined.js
     10A test/built-ins/TypedArray/prototype/indexOf/detached-buffer-during-fromIndex-returns-minus-one-for-zero.js
     11A test/built-ins/TypedArray/prototype/join/BigInt/detached-buffer-during-fromIndex-returns-single-comma.js
     12M test/built-ins/TypedArray/prototype/join/BigInt/detached-buffer.js
     13A test/built-ins/TypedArray/prototype/join/detached-buffer-during-fromIndex-returns-single-comma.js
     14M test/built-ins/TypedArray/prototype/join/detached-buffer.js
     15A test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/detached-buffer-during-fromIndex-returns-minus-one-for-undefined.js
     16A test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/detached-buffer-during-fromIndex-returns-minus-one-for-zero.js
     17A test/built-ins/TypedArray/prototype/lastIndexOf/detached-buffer-during-fromIndex-returns-minus-one-for-undefined.js
     18A test/built-ins/TypedArray/prototype/lastIndexOf/detached-buffer-during-fromIndex-returns-minus-one-for-zero.js
     19M test/built-ins/TypedArrayConstructors/internals/GetOwnProperty/BigInt/index-prop-desc.js
     20M test/built-ins/TypedArrayConstructors/internals/Set/detached-buffer.js
     21A test/intl402/DateTimeFormat/prototype/formatRange/date-same-returns-single-date.js
     22A test/intl402/DateTimeFormat/prototype/formatRangeToParts/date-same-returns-single-date.js
     23M test/intl402/Intl/getCanonicalLocales/canonicalized-tags.js
     24M test/intl402/Intl/getCanonicalLocales/preferred-grandfathered.js
     25M test/intl402/Intl/getCanonicalLocales/preferred-variant.js
     26M test/intl402/Locale/extensions-grandfathered.js
     27M test/intl402/Locale/likely-subtags-grandfathered.js
  • trunk/JSTests/test262/test/built-ins/TypedArray/prototype/join/BigInt/detached-buffer.js

    r230382 r271225  
    55description: Throws a TypeError if this has a detached buffer
    66info: |
    7   22.2.3.15 %TypedArray%.prototype.join ( separator )
     7  %TypedArray%.prototype.join ( separator )
    88
    9   This function is not generic. ValidateTypedArray is applied to the this value
    10   prior to evaluating the algorithm. If its result is an abrupt completion that
    11   exception is thrown instead of evaluating the algorithm.
     9  The interpretation and use of the arguments of %TypedArray%.prototype.join are the same as for Array.prototype.join as defined in 22.1.3.15.
    1210
    13   22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O )
     11  When the join method is called with one argument separator, the following steps are taken:
    1412
     13  Let O be the this value.
     14  Perform ? ValidateTypedArray(O).
    1515  ...
    16   5. If IsDetachedBuffer(buffer) is true, throw a TypeError exception.
    17   ...
     16
    1817includes: [testBigIntTypedArray.js, detachArrayBuffer.js]
    1918features: [BigInt, TypedArray]
    2019---*/
    2120
    22 var obj = {
    23   toString: function() {
     21let obj = {
     22  toString() {
    2423    throw new Test262Error();
    2524  }
     
    2726
    2827testWithBigIntTypedArrayConstructors(function(TA) {
    29   var sample = new TA(1);
     28  let sample = new TA(1);
    3029  $DETACHBUFFER(sample.buffer);
    31   assert.throws(TypeError, function() {
     30  assert.throws(TypeError, () => {
    3231    sample.join(obj);
    3332  });
  • trunk/JSTests/test262/test/built-ins/TypedArray/prototype/join/detached-buffer.js

    r228028 r271225  
    55description: Throws a TypeError if this has a detached buffer
    66info: |
    7   22.2.3.15 %TypedArray%.prototype.join ( separator )
     7  %TypedArray%.prototype.join ( separator )
    88
    9   This function is not generic. ValidateTypedArray is applied to the this value
    10   prior to evaluating the algorithm. If its result is an abrupt completion that
    11   exception is thrown instead of evaluating the algorithm.
     9  The interpretation and use of the arguments of %TypedArray%.prototype.join are the same as for Array.prototype.join as defined in 22.1.3.15.
    1210
    13   22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O )
     11  When the join method is called with one argument separator, the following steps are taken:
    1412
     13  Let O be the this value.
     14  Perform ? ValidateTypedArray(O).
    1515  ...
    16   5. If IsDetachedBuffer(buffer) is true, throw a TypeError exception.
    17   ...
     16
    1817includes: [testTypedArray.js, detachArrayBuffer.js]
    1918features: [TypedArray]
    2019---*/
    2120
    22 var obj = {
    23   toString: function() {
     21let obj = {
     22  toString() {
    2423    throw new Test262Error();
    2524  }
     
    2726
    2827testWithTypedArrayConstructors(function(TA) {
    29   var sample = new TA(1);
     28  let sample = new TA(1);
    3029  $DETACHBUFFER(sample.buffer);
    31   assert.throws(TypeError, function() {
     30  assert.throws(TypeError, () => {
    3231    sample.join(obj);
    3332  });
  • trunk/JSTests/test262/test/built-ins/TypedArrayConstructors/internals/GetOwnProperty/BigInt/index-prop-desc.js

    r269737 r271225  
    3030  assert.sameValue(descriptor0.writable, true);
    3131
    32   assert.sameValue(descriptor1.value, 42n);
     32  assert.sameValue(descriptor1.value, 43n);
    3333  assert.sameValue(descriptor1.configurable, true);
    3434  assert.sameValue(descriptor1.enumerable, true);
  • trunk/JSTests/test262/test/built-ins/TypedArrayConstructors/internals/Set/detached-buffer.js

    r269737 r271225  
    3131  $DETACHBUFFER(sample.buffer);
    3232  sample[0] = 1;
     33
    3334  assert.sameValue(sample[0], undefined, '`sample[0] = 1` is undefined');
    3435  sample['1.1'] = 1;
  • trunk/JSTests/test262/test/intl402/Intl/getCanonicalLocales/canonicalized-tags.js

    r248115 r271225  
    3838  "cmn-hans-cn-u-ca-t-ca-x-t-u": "zh-Hans-CN-t-ca-u-ca-x-t-u",
    3939  "de-gregory-u-ca-gregory": "de-gregory-u-ca-gregory",
    40   "sgn-GR": "sgn-GR",
     40  "sgn-GR": "gss",
    4141  "ji": "yi",
    4242  "de-DD": "de-DE",
  • trunk/JSTests/test262/test/intl402/Intl/getCanonicalLocales/preferred-grandfathered.js

    r248115 r271225  
    6363var regularGrandfatheredUTS35 = {
    6464  "art-lojban": "jbo",
    65   "cel-gaulish": "xtg-x-cel-gaulish",
     65  "cel-gaulish": "xtg",
    6666  "zh-guoyu": "zh",
    6767  "zh-hakka": "hak",
  • trunk/JSTests/test262/test/intl402/Intl/getCanonicalLocales/preferred-variant.js

    r260591 r271225  
    3737---*/
    3838
    39 // Generated from https://github.com/unicode-org/cldr/blob/master/common/supplemental/supplementalMetadata.xml
    40 // File-Date: 2020-03-30
     39// https://github.com/unicode-org/cldr/blame/master/common/supplemental/supplementalMetadata.xml#L531
     40// http://unicode.org/reports/tr35/#LocaleId_Canonicalization
    4141var canonicalizedTags = {
    42   "ja-latn-hepburn-heploc": "ja-Latn-alalc97-hepburn",
     42  "ja-latn-hepburn-heploc": "ja-Latn-alalc97",
    4343};
    4444
  • trunk/JSTests/test262/test/intl402/Locale/extensions-grandfathered.js

    r260591 r271225  
    3232            numberingSystem: "latn",
    3333        },
    34         canonical: "fr-Cyrl-FR-u-nu-latn-x-cel-gaulish",
     34        canonical: "fr-Cyrl-FR-u-nu-latn",
    3535    },
    3636
  • trunk/JSTests/test262/test/intl402/Locale/likely-subtags-grandfathered.js

    r260591 r271225  
    6969    {
    7070        tag: "cel-gaulish",
    71         canonical: "xtg-x-cel-gaulish",
     71        canonical: "xtg",
    7272    },
    7373    {
     
    124124];
    125125
    126 for (const {tag} of regularGrandfathered) {
     126for (const {tag, canonical} of regularGrandfathered) {
    127127    const priv = "-x-0";
    128     const tagMax = new Intl.Locale(tag + priv).maximize().toString().slice(0, -priv.length);
    129     const tagMin = new Intl.Locale(tag + priv).minimize().toString().slice(0, -priv.length);
     128    const tagMax = new Intl.Locale(canonical + priv).maximize().toString().slice(0, -priv.length);
     129    const tagMin = new Intl.Locale(canonical + priv).minimize().toString().slice(0, -priv.length);
    130130
    131131    for (const extra of extras) {
    132132        const loc = new Intl.Locale(tag + "-" + extra);
    133133
    134         let canonical = tag + "-" + extra;
     134        let canonicalWithExtra = canonical + "-" + extra;
    135135        let canonicalMax = tagMax + "-" + extra;
    136136        let canonicalMin = tagMin + "-" + extra;
     
    140140            const sorted = s => s.replace(/(-([a-z0-9]{5,8}|[0-9][a-z0-9]{3}))+$/i,
    141141                                          m => m.split("-").sort().join("-"));
    142             canonical = sorted(canonical);
     142            canonicalWithExtra = sorted(canonicalWithExtra);
    143143            canonicalMax = sorted(canonicalMax);
    144144            canonicalMin = sorted(canonicalMin);
     
    157157        //
    158158        // From <http://unicode.org/reports/tr35/#Language_Tag_to_Locale_Identifier>:
     159        //
     160        // > A valid [BCP47] language tag can be converted to a valid Unicode BCP 47 locale
     161        // > identifier according to Annex C. LocaleId Canonicalization
     162        //
     163        // From <http://unicode.org/reports/tr35/#LocaleId_Canonicalization>
     164        // > The languageAlias, scriptAlias, territoryAlias, and variantAlias elements are used
     165        // > as rules to transform an input source localeId. The first step is to transform the
     166        // > languageId portion of the localeId.
    159167        //
    160         // > If the BCP 47 primary language subtag matches the type attribute of a languageAlias
    161         // > element in Supplemental Data, replace the language subtag with the replacement value.
    162         // >  1. ...
    163         // >  2. Five special deprecated grandfathered codes (such as i-default) are in type
    164         //       attributes, and are also replaced.
    165         // >  3. ...
    166         //
    167         // So let's assume grandfathered tags are treated as 'primary language subtag' if and only
    168         // if no additional subtags are present. Because in all other cases, we don't really have a
    169         // grandfathered tag, but only some arbitrary combination of random subtags.
    170         //
    171         // Basically what we expect here is that only grandfathered without any additional subtags
    172         // are canonicalised to their modern form and in all other cases they're left as is.
     168        // For regular grandfathered tags, "lojban", "gaulish", "guoyu", "hakka", and "xiang" will
     169        // therefore be considered as the "variant" subtag and be replaced by rules in languageAlias.
    173170        //
    174171        // Not all language tag processor will pass this test, for example because they don't order
     
    188185        // So, if your implementation fails this assertion, but you still like to test the rest of
    189186        // this file, a pull request to split this file seems the way to go!
    190         assert.sameValue(loc.toString(), canonical);
     187        assert.sameValue(loc.toString(), canonicalWithExtra);
    191188
    192189        assert.sameValue(loc.maximize().toString(), canonicalMax);
  • trunk/JSTests/test262/test262-Revision.txt

    r270695 r271225  
    11test262 remote url: git@github.com:tc39/test262.git
    2 test262 revision: 51666c5315ee674d3157544497d933310e2cd6b8
     2test262 revision: 6cf3433cf8f44c471a7e4f47e5ba36d32ebb7b69
Note: See TracChangeset for help on using the changeset viewer.