Changeset 269986 in webkit


Ignore:
Timestamp:
Nov 18, 2020 2:26:29 PM (3 years ago)
Author:
Ross Kirsling
Message:

Update test262 (2020.11.18)
https://bugs.webkit.org/show_bug.cgi?id=219109

Reviewed by Yusuke Suzuki.

  • test262/config.yaml:
  • test262/expectations.yaml:
  • test262/latest-changes-summary.txt:
  • test262/test/:
  • test262/test262-Revision.txt:
Location:
trunk/JSTests
Files:
23 added
3 deleted
7 edited
13 copied

Legend:

Unmodified
Added
Removed
  • trunk/JSTests/ChangeLog

    r269974 r269986  
     12020-11-18  Ross Kirsling  <ross.kirsling@sony.com>
     2
     3        Update test262 (2020.11.18)
     4        https://bugs.webkit.org/show_bug.cgi?id=219109
     5
     6        Reviewed by Yusuke Suzuki.
     7
     8        * test262/config.yaml:
     9        * test262/expectations.yaml:
     10        * test262/latest-changes-summary.txt:
     11        * test262/test/:
     12        * test262/test262-Revision.txt:
     13
    1142020-11-18  Yusuke Suzuki  <ysuzuki@apple.com>
    215
  • trunk/JSTests/test262/config.yaml

    r269939 r269986  
    99  SharedArrayBuffer: useSharedArrayBuffer
    1010  Atomics: useSharedArrayBuffer
     11  Array.prototype.at: useAtMethod
     12  TypedArray.prototype.at: useAtMethod
    1113skip:
    1214  features:
     
    2729    - Intl.ListFormat
    2830
    29     # remove once it's been renamed in test262
    30     - Array.prototype.item
    31     - TypedArray.prototype.item
    32 
    33     # remove once it's no longer in test262
    34     - String.prototype.item
     31    - String.prototype.at
    3532  paths:
    3633    - test/built-ins/DataView/prototype/getBigInt64
  • trunk/JSTests/test262/expectations.yaml

    r269737 r269986  
    824824  default: 'SyntaxError: Invalid regular expression: number too large in {} quantifier'
    825825  strict mode: 'SyntaxError: Invalid regular expression: number too large in {} quantifier'
     826test/built-ins/TypedArray/prototype/at/prop-desc.js:
     827  default: 'Test262Error: descriptor should be writable'
     828  strict mode: 'Test262Error: descriptor should be writable'
    826829test/built-ins/TypedArray/prototype/includes/detached-buffer-tointeger.js:
    827830  default: 'Test262Error: Expected a TypeError to be thrown but no exception was thrown at all (Testing with Float64Array.)'
     
    893896  default: 'Test262Error: Expected a TypeError to be thrown but no exception was thrown at all (Testing with Float64Array.)'
    894897  strict mode: 'Test262Error: Expected a TypeError to be thrown but no exception was thrown at all (Testing with Float64Array.)'
    895 test/built-ins/TypedArrayConstructors/internals/GetOwnProperty/index-prop-desc.js:
    896   default: 'Test262Error: Expected SameValue(«43», «42») to be true (Testing with Float64Array.)'
    897   strict mode: 'Test262Error: Expected SameValue(«43», «42») to be true (Testing with Float64Array.)'
    898898test/built-ins/TypedArrayConstructors/internals/Set/key-is-minus-zero.js:
    899899  default: 'Test262Error: Reflect.set(sample, "-0", 1) must return false Expected SameValue(«true», «false») to be true (Testing with Float64Array.)'
  • trunk/JSTests/test262/latest-changes-summary.txt

    r269737 r269986  
    1 M harness/atomicsHelper.js
    2 M test/built-ins/Atomics/waitAsync/bigint/true-for-timeout.js
    3 M test/built-ins/Atomics/waitAsync/returns-result-object-value-is-promise-resolves-to-timed-out.js
    4 M test/built-ins/Atomics/waitAsync/true-for-timeout.js
    5 R100 test/built-ins/Object/seal/object-seal-the-configurable-attribute-of-all-own-properties-of-o-are-set-from-true-to-false-and-other-attributes-of-the-property-are-unaltered.js test/built-ins/Object/seal/configurable-attribute-all-own-properties-set-from-true-to-false-property-are-unaltered.js
    6 R100 test/built-ins/Object/seal/object-seal-the-configurable-attribute-of-own-accessor-property-of-o-is-set-from-true-to-false-and-other-attributes-of-the-property-are-unaltered.js test/built-ins/Object/seal/configurable-attribute-own-accessor-property-set-from-true-to-false-property-are-unaltered.js
    7 M test/built-ins/Object/seal/seal-finalizationregistry.js
    8 M test/built-ins/Object/seal/seal-weakref.js
    9 D test/built-ins/String/prototype/split/arguments-are-objects-and-instance-is-string-first-object-have-overrided-to-string-function-and-value-of-function-that-throw-exception-second-object-have-overrided-value-of-function-that-throw-exception.js
    10 R100 test/built-ins/String/prototype/split/arguments-are-objects-and-instance-is-string-first-object-have-overrided-to-string-function-second-object-have-overrided-value-of-function-that-throw-exception.js test/built-ins/String/prototype/split/separator-override-tostring-limit-override-valueof-throws.js
    11 R100 test/built-ins/String/prototype/split/arguments-are-objects-and-instance-is-string-first-object-have-overrided-to-string-function-second-object-have-overrided-value-of-function-and-to-string-function-that-throw-exception.js test/built-ins/String/prototype/split/separator-override-tostring-limit-override-valueof-tostring-throws.js
    12 R100 test/built-ins/String/prototype/split/arguments-are-objects-and-instance-is-string-first-object-have-overrided-to-string-function-second-object-have-overrided-value-of-and-to-string-functions.js test/built-ins/String/prototype/split/separator-override-tostring-limit-override-valueof-tostring.js
    13 R100 test/built-ins/String/prototype/split/arguments-are-objects-and-instance-is-string-first-object-have-overrided-to-string-function-second-object-have-overrided-value-of-function.js test/built-ins/String/prototype/split/separator-override-tostring-limit-override-valueof.js
    14 R100 test/built-ins/String/prototype/split/arguments-are-objects-and-instance-is-string-first-object-have-overrided-to-string-function-that-throw-exception-second-object-have-overrided-value-of-function-that-throw-exception.js test/built-ins/String/prototype/split/separator-override-tostring-throws-limit-override-valueof-throws.js
    15 R100 test/built-ins/String/prototype/split/argument-is-function-and-instance-is-string-object-object-have-overrided-to-string-and-value-of-functions.js test/built-ins/String/prototype/split/separator-override-valueof.js
    16 A test/built-ins/String/prototype/split/transferred-to-custom.js
    17 R100 test/built-ins/String/prototype/split/argument-is-object-and-instance-is-number-object-have-overrided-to-string-function-that-return-regexp.js test/built-ins/String/prototype/split/transferred-to-number-separator-override-tostring-returns-regexp.js
    18 A test/built-ins/String/prototype/split/valueOf-is-called-for-limit-argument.js
    19 M test/built-ins/TypedArray/prototype/every/BigInt/callbackfn-detachbuffer.js
    20 M test/built-ins/TypedArray/prototype/every/callbackfn-detachbuffer.js
    21 M test/built-ins/TypedArray/prototype/filter/BigInt/callbackfn-detachbuffer.js
    22 M test/built-ins/TypedArray/prototype/filter/callbackfn-detachbuffer.js
    23 M test/built-ins/TypedArray/prototype/find/BigInt/predicate-may-detach-buffer.js
    24 M test/built-ins/TypedArray/prototype/find/predicate-may-detach-buffer.js
    25 M test/built-ins/TypedArray/prototype/findIndex/predicate-may-detach-buffer.js
    26 M test/built-ins/TypedArray/prototype/forEach/BigInt/callbackfn-detachbuffer.js
    27 M test/built-ins/TypedArray/prototype/forEach/callbackfn-detachbuffer.js
    28 M test/built-ins/TypedArray/prototype/map/BigInt/callbackfn-detachbuffer.js
    29 M test/built-ins/TypedArray/prototype/map/callbackfn-detachbuffer.js
    30 M test/built-ins/TypedArray/prototype/reduce/BigInt/callbackfn-detachbuffer.js
    31 M test/built-ins/TypedArray/prototype/reduce/callbackfn-detachbuffer.js
    32 M test/built-ins/TypedArray/prototype/reduceRight/BigInt/callbackfn-detachbuffer.js
    33 M test/built-ins/TypedArray/prototype/reduceRight/callbackfn-detachbuffer.js
    34 M test/built-ins/TypedArray/prototype/slice/BigInt/detached-buffer-custom-ctor-other-targettype.js
    35 M test/built-ins/TypedArray/prototype/slice/detached-buffer-custom-ctor-other-targettype.js
    36 M test/built-ins/TypedArray/prototype/some/BigInt/callbackfn-detachbuffer.js
    37 M test/built-ins/TypedArray/prototype/some/callbackfn-detachbuffer.js
    38 M test/built-ins/TypedArrayConstructors/internals/DefineOwnProperty/BigInt/detached-buffer-realm.js
    39 M test/built-ins/TypedArrayConstructors/internals/DefineOwnProperty/BigInt/key-is-numericindex-desc-configurable.js
    40 M test/built-ins/TypedArrayConstructors/internals/DefineOwnProperty/BigInt/key-is-numericindex.js
    41 M test/built-ins/TypedArrayConstructors/internals/DefineOwnProperty/key-is-numericindex-desc-configurable.js
    42 M test/built-ins/TypedArrayConstructors/internals/DefineOwnProperty/key-is-numericindex.js
    43 M test/built-ins/TypedArrayConstructors/internals/GetOwnProperty/BigInt/index-prop-desc.js
     1R062 test/built-ins/Array/prototype/item/index-argument-tointeger.js test/built-ins/Array/prototype/at/index-argument-tointeger.js
     2R057 test/built-ins/Array/prototype/item/index-non-numeric-argument-tointeger-invalid.js test/built-ins/Array/prototype/at/index-non-numeric-argument-tointeger-invalid.js
     3A test/built-ins/Array/prototype/at/index-non-numeric-argument-tointeger.js
     4A test/built-ins/Array/prototype/at/length.js
     5A test/built-ins/Array/prototype/at/name.js
     6A test/built-ins/Array/prototype/at/prop-desc.js
     7A test/built-ins/Array/prototype/at/return-abrupt-from-this.js
     8R053 test/built-ins/Array/prototype/item/returns-item-relative-index.js test/built-ins/Array/prototype/at/returns-item-relative-index.js
     9R050 test/built-ins/Array/prototype/item/returns-item.js test/built-ins/Array/prototype/at/returns-item.js
     10A test/built-ins/Array/prototype/at/returns-undefined-for-holes-in-sparse-arrays.js
     11A test/built-ins/Array/prototype/at/returns-undefined-for-out-of-range-index.js
     12D test/built-ins/Array/prototype/item/index-non-numeric-argument-tointeger.js
     13D test/built-ins/Array/prototype/item/length.js
     14D test/built-ins/Array/prototype/item/name.js
     15D test/built-ins/Array/prototype/item/prop-desc.js
     16D test/built-ins/Array/prototype/item/return-abrupt-from-this.js
     17D test/built-ins/Array/prototype/item/returns-undefined-for-holes-in-sparse-arrays.js
     18D test/built-ins/Array/prototype/item/returns-undefined-for-out-of-range-index.js
     19R062 test/built-ins/String/prototype/item/index-argument-tointeger.js test/built-ins/String/prototype/at/index-argument-tointeger.js
     20R056 test/built-ins/String/prototype/item/index-non-numeric-argument-tointeger-invalid.js test/built-ins/String/prototype/at/index-non-numeric-argument-tointeger-invalid.js
     21A test/built-ins/String/prototype/at/index-non-numeric-argument-tointeger.js
     22A test/built-ins/String/prototype/at/length.js
     23A test/built-ins/String/prototype/at/name.js
     24A test/built-ins/String/prototype/at/prop-desc.js
     25A test/built-ins/String/prototype/at/return-abrupt-from-this.js
     26R052 test/built-ins/String/prototype/item/returns-code-unit.js test/built-ins/String/prototype/at/returns-code-unit.js
     27R056 test/built-ins/String/prototype/item/returns-item-relative-index.js test/built-ins/String/prototype/at/returns-item-relative-index.js
     28R053 test/built-ins/String/prototype/item/returns-item.js test/built-ins/String/prototype/at/returns-item.js
     29A test/built-ins/String/prototype/at/returns-undefined-for-out-of-range-index.js
     30D test/built-ins/String/prototype/item/index-non-numeric-argument-tointeger.js
     31D test/built-ins/String/prototype/item/length.js
     32D test/built-ins/String/prototype/item/name.js
     33D test/built-ins/String/prototype/item/prop-desc.js
     34D test/built-ins/String/prototype/item/return-abrupt-from-this.js
     35D test/built-ins/String/prototype/item/returns-undefined-for-out-of-range-index.js
     36R056 test/built-ins/TypedArray/prototype/item/index-argument-tointeger.js test/built-ins/TypedArray/prototype/at/index-argument-tointeger.js
     37R050 test/built-ins/TypedArray/prototype/item/index-non-numeric-argument-tointeger-invalid.js test/built-ins/TypedArray/prototype/at/index-non-numeric-argument-tointeger-invalid.js
     38A test/built-ins/TypedArray/prototype/at/index-non-numeric-argument-tointeger.js
     39A test/built-ins/TypedArray/prototype/at/length.js
     40A test/built-ins/TypedArray/prototype/at/name.js
     41A test/built-ins/TypedArray/prototype/at/prop-desc.js
     42A test/built-ins/TypedArray/prototype/at/return-abrupt-from-this.js
     43R055 test/built-ins/TypedArray/prototype/item/returns-item-relative-index.js test/built-ins/TypedArray/prototype/at/returns-item-relative-index.js
     44R053 test/built-ins/TypedArray/prototype/item/returns-item.js test/built-ins/TypedArray/prototype/at/returns-item.js
     45A test/built-ins/TypedArray/prototype/at/returns-undefined-for-holes-in-sparse-arrays.js
     46A test/built-ins/TypedArray/prototype/at/returns-undefined-for-out-of-range-index.js
     47D test/built-ins/TypedArray/prototype/item/index-non-numeric-argument-tointeger.js
     48D test/built-ins/TypedArray/prototype/item/length.js
     49D test/built-ins/TypedArray/prototype/item/name.js
     50D test/built-ins/TypedArray/prototype/item/prop-desc.js
     51D test/built-ins/TypedArray/prototype/item/return-abrupt-from-this.js
     52D test/built-ins/TypedArray/prototype/item/returns-undefined-for-holes-in-sparse-arrays.js
     53D test/built-ins/TypedArray/prototype/item/returns-undefined-for-out-of-range-index.js
    4454M test/built-ins/TypedArrayConstructors/internals/GetOwnProperty/index-prop-desc.js
    45 M test/built-ins/TypedArrayConstructors/internals/Set/BigInt/detached-buffer-realm.js
    46 M test/built-ins/TypedArrayConstructors/internals/Set/BigInt/detached-buffer.js
    47 M test/built-ins/TypedArrayConstructors/internals/Set/BigInt/tonumber-value-detached-buffer.js
    48 M test/built-ins/TypedArrayConstructors/internals/Set/detached-buffer-realm.js
    49 M test/built-ins/TypedArrayConstructors/internals/Set/detached-buffer.js
    50 M test/built-ins/TypedArrayConstructors/internals/Set/tonumber-value-detached-buffer.js
    51 A test/intl402/DateTimeFormat/intl-legacy-constructed-symbol-on-unwrap.js
    52 A test/intl402/DateTimeFormat/intl-legacy-constructed-symbol.js
    53 A test/intl402/NumberFormat/intl-legacy-constructed-symbol-on-unwrap.js
    54 A test/intl402/NumberFormat/intl-legacy-constructed-symbol.js
    55 D test/language/eval-code/direct/arrow-fn-body-cntns-arguments-fn-decl-params-cntns-dflt-assignment-arrow-func-declare-arguments-assign-incl-def-param-arrow-arguments.js
    56 D test/language/eval-code/direct/arrow-fn-body-cntns-arguments-fn-decl-params-cntns-dflt-assignment-arrow-func-declare-arguments-assign.js
    57 A test/language/literals/string/legacy-non-octal-escape-sequence-1-strict-explicit-pragma.js
    58 A test/language/literals/string/legacy-non-octal-escape-sequence-2-strict-explicit-pragma.js
    59 A test/language/literals/string/legacy-non-octal-escape-sequence-3-strict-explicit-pragma.js
    60 A test/language/literals/string/legacy-non-octal-escape-sequence-4-strict-explicit-pragma.js
    61 A test/language/literals/string/legacy-non-octal-escape-sequence-5-strict-explicit-pragma.js
    62 A test/language/literals/string/legacy-non-octal-escape-sequence-6-strict-explicit-pragma.js
    63 A test/language/literals/string/legacy-non-octal-escape-sequence-7-strict-explicit-pragma.js
    64 A test/language/literals/string/legacy-non-octal-escape-sequence-8-strict-explicit-pragma.js
    65 A test/language/literals/string/legacy-non-octal-escape-sequence-9-strict-explicit-pragma.js
    66 M test/language/module-code/export-expname-binding-string.js
    67 A test/language/module-code/export-expname-from-as-unpaired-surrogate.js
    68 A test/language/module-code/export-expname-from-star-unpaired-surrogate.js
    69 A test/language/module-code/export-expname-from-unpaired-surrogate.js
    70 A test/language/module-code/export-expname-import-unpaired-surrogate.js
    71 A test/language/module-code/export-expname-string-binding.js
    72 A test/language/module-code/export-expname-unpaired-surrogate.js
    73 M test/language/module-code/export-expname_FIXTURE.js
     55M test/language/global-code/decl-lex-configurable-global.js
  • trunk/JSTests/test262/test/built-ins/Array/prototype/at/index-argument-tointeger.js

    r269985 r269986  
    22// This code is governed by the BSD license found in the LICENSE file.
    33/*---
    4 esid: sec-array.prototype.item
     4esid: sec-array.prototype.at
    55description: >
    66  Property type and descriptor.
    77info: |
    8   Array.prototype.item( index )
     8  Array.prototype.at( index )
    99
    1010  Let relativeIndex be ? ToInteger(index).
    1111
    12 features: [Array.prototype.item]
     12features: [Array.prototype.at]
    1313---*/
    14 assert.sameValue(typeof Array.prototype.item, 'function');
     14assert.sameValue(typeof Array.prototype.at, 'function');
    1515
    1616let valueOfCallCount = 0;
     
    2424let a = [0,1,2,3];
    2525
    26 assert.sameValue(a.item(index), 1, 'a.item({valueOf() {valueOfCallCount++; return 1;}}) must return 1');
     26assert.sameValue(a.at(index), 1, 'a.at({valueOf() {valueOfCallCount++; return 1;}}) must return 1');
    2727assert.sameValue(valueOfCallCount, 1, 'The value of `valueOfCallCount` is 1');
  • trunk/JSTests/test262/test/built-ins/Array/prototype/at/index-non-numeric-argument-tointeger-invalid.js

    r269985 r269986  
    22// This code is governed by the BSD license found in the LICENSE file.
    33/*---
    4 esid: sec-array.prototype.item
     4esid: sec-array.prototype.at
    55description: >
    66  Property type and descriptor.
    77info: |
    8   Array.prototype.item( index )
     8  Array.prototype.at( index )
    99
    1010  Let relativeIndex be ? ToInteger(index).
    1111
    12 features: [Array.prototype.item]
     12features: [Array.prototype.at]
    1313---*/
    14 assert.sameValue(typeof Array.prototype.item, 'function');
     14assert.sameValue(typeof Array.prototype.at, 'function');
    1515
    1616let a = [0,1,2,3];
    1717
    1818assert.throws(TypeError, () => {
    19   a.item(Symbol());
    20 }, '`a.item(Symbol())` throws TypeError');
     19  a.at(Symbol());
     20}, '`a.at(Symbol())` throws TypeError');
  • trunk/JSTests/test262/test/built-ins/Array/prototype/at/returns-item-relative-index.js

    r269985 r269986  
    22// This code is governed by the BSD license found in the LICENSE file.
    33/*---
    4 esid: sec-array.prototype.item
     4esid: sec-array.prototype.at
    55description: >
    66  Returns the item value at the specified relative index
    77info: |
    8   Array.prototypeitem ( )
     8  Array.prototype.at ( )
    99
    1010  Let O be ? ToObject(this value).
     
    1818  Return ? Get(O, ! ToString(k)).
    1919
    20 features: [Array.prototype.item]
     20features: [Array.prototype.at]
    2121---*/
    22 assert.sameValue(typeof Array.prototype.item, 'function');
     22assert.sameValue(typeof Array.prototype.at, 'function');
    2323
    2424let a = [1, 2, 3, 4, ,5];
    2525
    26 assert.sameValue(a.item(0), 1, 'a.item(0) must return 1');
    27 assert.sameValue(a.item(-1), 5, 'a.item(-1) must return 5');
    28 assert.sameValue(a.item(-2), undefined, 'a.item(-2) must return undefined');
    29 assert.sameValue(a.item(-3), 4, 'a.item(-3) must return 4');
    30 assert.sameValue(a.item(-4), 3, 'a.item(-4) must return 3');
     26assert.sameValue(a.at(0), 1, 'a.at(0) must return 1');
     27assert.sameValue(a.at(-1), 5, 'a.at(-1) must return 5');
     28assert.sameValue(a.at(-2), undefined, 'a.at(-2) must return undefined');
     29assert.sameValue(a.at(-3), 4, 'a.at(-3) must return 4');
     30assert.sameValue(a.at(-4), 3, 'a.at(-4) must return 3');
  • trunk/JSTests/test262/test/built-ins/Array/prototype/at/returns-item.js

    r269985 r269986  
    22// This code is governed by the BSD license found in the LICENSE file.
    33/*---
    4 esid: sec-array.prototype.item
     4esid: sec-array.prototype.at
    55description: >
    66  Returns the item value at the specified index
    77info: |
    8   Array.prototypeitem ( )
     8  Array.prototype.at ( )
    99
    1010  Let O be ? ToObject(this value).
     
    1818  Return ? Get(O, ! ToString(k)).
    1919
    20 features: [Array.prototype.item]
     20features: [Array.prototype.at]
    2121---*/
    22 assert.sameValue(typeof Array.prototype.item, 'function');
     22assert.sameValue(typeof Array.prototype.at, 'function');
    2323
    2424let a = [1, 2, 3, 4,,5];
    2525
    26 assert.sameValue(a.item(0), 1, 'a.item(0) must return 1');
    27 assert.sameValue(a.item(1), 2, 'a.item(1) must return 2');
    28 assert.sameValue(a.item(2), 3, 'a.item(2) must return 3');
    29 assert.sameValue(a.item(3), 4, 'a.item(3) must return 4');
    30 assert.sameValue(a.item(4), undefined, 'a.item(4) must return undefined');
    31 assert.sameValue(a.item(5), 5, 'a.item(5) must return 5');
     26assert.sameValue(a.at(0), 1, 'a.at(0) must return 1');
     27assert.sameValue(a.at(1), 2, 'a.at(1) must return 2');
     28assert.sameValue(a.at(2), 3, 'a.at(2) must return 3');
     29assert.sameValue(a.at(3), 4, 'a.at(3) must return 4');
     30assert.sameValue(a.at(4), undefined, 'a.at(4) must return undefined');
     31assert.sameValue(a.at(5), 5, 'a.at(5) must return 5');
  • trunk/JSTests/test262/test/built-ins/String/prototype/at/index-argument-tointeger.js

    r269985 r269986  
    22// This code is governed by the BSD license found in the LICENSE file.
    33/*---
    4 esid: sec-string.prototype.item
     4esid: sec-string.prototype.at
    55description: >
    66  Property type and descriptor.
    77info: |
    8   String.prototype.item( index )
     8  String.prototype.at( index )
    99
    1010  Let relativeIndex be ? ToInteger(index).
    1111
    12 features: [String.prototype.item]
     12features: [String.prototype.at]
    1313---*/
    14 assert.sameValue(typeof String.prototype.item, 'function');
     14assert.sameValue(typeof String.prototype.at, 'function');
    1515
    1616let valueOfCallCount = 0;
     
    2424let s = "01";
    2525
    26 assert.sameValue(s.item(index), '1', 's.item({valueOf() {valueOfCallCount++; return 1;}}) must return 1');
     26assert.sameValue(s.at(index), '1', 's.at({valueOf() {valueOfCallCount++; return 1;}}) must return 1');
    2727assert.sameValue(valueOfCallCount, 1, 'The value of `valueOfCallCount` is 1');
  • trunk/JSTests/test262/test/built-ins/String/prototype/at/index-non-numeric-argument-tointeger-invalid.js

    r269985 r269986  
    22// This code is governed by the BSD license found in the LICENSE file.
    33/*---
    4 esid: sec-string.prototype.item
     4esid: sec-string.prototype.at
    55description: >
    66  Property type and descriptor.
    77info: |
    8   String.prototype.item( index )
     8  String.prototype.at( index )
    99
    1010  Let relativeIndex be ? ToInteger(index).
    1111
    12 features: [String.prototype.item]
     12features: [String.prototype.at]
    1313---*/
    14 assert.sameValue(typeof String.prototype.item, 'function');
     14assert.sameValue(typeof String.prototype.at, 'function');
    1515
    1616let s = "01";
    1717
    1818assert.throws(TypeError, () => {
    19   s.item(Symbol());
    20 }, '`s.item(Symbol())` throws TypeError');
     19  s.at(Symbol());
     20}, '`s.at(Symbol())` throws TypeError');
  • trunk/JSTests/test262/test/built-ins/String/prototype/at/returns-code-unit.js

    r269985 r269986  
    22// This code is governed by the BSD license found in the LICENSE file.
    33/*---
    4 esid: sec-String.prototype.item
     4esid: sec-String.prototype.at
    55description: >
    66  The method should return an Iterator instance.
    77info: |
    8   String.prototypeitem ( )
     8  String.prototype.at ( )
    99
    1010  Let O be ? ToObject(this value).
     
    1818  Return ? Get(O, ! ToString(k)).
    1919
    20 features: [String.prototype.item]
     20features: [String.prototype.at]
    2121---*/
    22 assert.sameValue(typeof String.prototype.item, 'function');
     22assert.sameValue(typeof String.prototype.at, 'function');
    2323
    2424let s = "12\uD80034";
    2525
    26 assert.sameValue(s.item(0), "1", 's.item(0) must return "1"');
    27 assert.sameValue(s.item(1), "2", 's.item(1) must return "2"');
    28 assert.sameValue(s.item(2), "\uD800", 's.item(2) must return "\\uD800"');
    29 assert.sameValue(s.item(3), "3", 's.item(3) must return "3"');
    30 assert.sameValue(s.item(4), "4", 's.item(4) must return "4"');
     26assert.sameValue(s.at(0), "1", 's.at(0) must return "1"');
     27assert.sameValue(s.at(1), "2", 's.at(1) must return "2"');
     28assert.sameValue(s.at(2), "\uD800", 's.at(2) must return "\\uD800"');
     29assert.sameValue(s.at(3), "3", 's.at(3) must return "3"');
     30assert.sameValue(s.at(4), "4", 's.at(4) must return "4"');
  • trunk/JSTests/test262/test/built-ins/String/prototype/at/returns-item-relative-index.js

    r269985 r269986  
    22// This code is governed by the BSD license found in the LICENSE file.
    33/*---
    4 esid: sec-String.prototypeitem
     4esid: sec-String.prototype.at
    55description: >
    66  Returns the item value at the specified relative index
    77info: |
    8   String.prototypeitem ( )
     8  String.prototype.at ( )
    99
    1010  Let O be ? ToObject(this value).
     
    1818  Return ? Get(O, ! ToString(k)).
    1919
    20 features: [String.prototype.item]
     20features: [String.prototype.at]
    2121---*/
    22 assert.sameValue(typeof String.prototype.item, 'function');
     22assert.sameValue(typeof String.prototype.at, 'function');
    2323
    2424let s = "12345";
    2525
    26 assert.sameValue(s.item(0), "1", 's.item(0) must return "1"');
    27 assert.sameValue(s.item(-1), "5", 's.item(-1) must return "5"');
    28 assert.sameValue(s.item(-3), "3", 's.item(-3) must return "3"');
    29 assert.sameValue(s.item(-4), "2", 's.item(-4) must return "2"');
     26assert.sameValue(s.at(0), "1", 's.at(0) must return "1"');
     27assert.sameValue(s.at(-1), "5", 's.at(-1) must return "5"');
     28assert.sameValue(s.at(-3), "3", 's.at(-3) must return "3"');
     29assert.sameValue(s.at(-4), "2", 's.at(-4) must return "2"');
  • trunk/JSTests/test262/test/built-ins/String/prototype/at/returns-item.js

    r269985 r269986  
    22// This code is governed by the BSD license found in the LICENSE file.
    33/*---
    4 esid: sec-String.prototypeitem
     4esid: sec-String.prototype.at
    55description: >
    66  Returns the item value at the specified index
    77info: |
    8   String.prototypeitem ( )
     8  String.prototype.at ( )
    99
    1010  Let O be ? ToObject(this value).
     
    1818  Return ? Get(O, ! ToString(k)).
    1919
    20 features: [String.prototype.item]
     20features: [String.prototype.at]
    2121---*/
    22 assert.sameValue(typeof String.prototype.item, 'function');
     22assert.sameValue(typeof String.prototype.at, 'function');
    2323
    2424let s = "12345";
    2525
    26 assert.sameValue(s.item(0), "1", 's.item(0) must return "1"');
    27 assert.sameValue(s.item(1), "2", 's.item(1) must return "2"');
    28 assert.sameValue(s.item(2), "3", 's.item(2) must return "3"');
    29 assert.sameValue(s.item(3), "4", 's.item(3) must return "4"');
    30 assert.sameValue(s.item(4), "5", 's.item(4) must return "5"');
     26assert.sameValue(s.at(0), "1", 's.at(0) must return "1"');
     27assert.sameValue(s.at(1), "2", 's.at(1) must return "2"');
     28assert.sameValue(s.at(2), "3", 's.at(2) must return "3"');
     29assert.sameValue(s.at(3), "4", 's.at(3) must return "4"');
     30assert.sameValue(s.at(4), "5", 's.at(4) must return "5"');
  • trunk/JSTests/test262/test/built-ins/TypedArray/prototype/at/index-argument-tointeger.js

    r269985 r269986  
    22// This code is governed by the BSD license found in the LICENSE file.
    33/*---
    4 esid: sec-%typedarray%.prototype.item
     4esid: sec-%typedarray%.prototype.at
    55description: >
    66  Property type and descriptor.
    77info: |
    8   %TypedArray%.prototype.item( index )
     8  %TypedArray%.prototype.at( index )
    99
    1010  Let relativeIndex be ? ToInteger(index).
    1111
    1212includes: [testTypedArray.js]
    13 features: [TypedArray, TypedArray.prototype.item]
     13features: [TypedArray, TypedArray.prototype.at]
    1414---*/
    1515assert.sameValue(
    16   typeof TypedArray.prototype.item,
     16  typeof TypedArray.prototype.at,
    1717  'function',
    18   'The value of `typeof TypedArray.prototype.item` is "function"'
     18  'The value of `typeof TypedArray.prototype.at` is "function"'
    1919);
    2020
    2121testWithTypedArrayConstructors(TA => {
    22   assert.sameValue(typeof TA.prototype.item, 'function', 'The value of `typeof TA.prototype.item` is "function"');
     22  assert.sameValue(typeof TA.prototype.at, 'function', 'The value of `typeof TA.prototype.at` is "function"');
    2323  let valueOfCallCount = 0;
    2424  let index = {
     
    3131  let a = new TA([0,1,2,3]);
    3232
    33   assert.sameValue(a.item(index), 1, 'a.item({valueOf() {valueOfCallCount++; return 1;}}) must return 1');
     33  assert.sameValue(a.at(index), 1, 'a.at({valueOf() {valueOfCallCount++; return 1;}}) must return 1');
    3434  assert.sameValue(valueOfCallCount, 1, 'The value of `valueOfCallCount` is 1');
    3535});
  • trunk/JSTests/test262/test/built-ins/TypedArray/prototype/at/index-non-numeric-argument-tointeger-invalid.js

    r269985 r269986  
    22// This code is governed by the BSD license found in the LICENSE file.
    33/*---
    4 esid: sec-%typedarray%.prototype.item
     4esid: sec-%typedarray%.prototype.at
    55description: >
    66  Property type and descriptor.
    77info: |
    8   %TypedArray%.prototype.item( index )
     8  %TypedArray%.prototype.at( index )
    99
    1010  Let relativeIndex be ? ToInteger(index).
    1111
    1212includes: [testTypedArray.js]
    13 features: [TypedArray, TypedArray.prototype.item]
     13features: [TypedArray, TypedArray.prototype.at]
    1414---*/
    1515assert.sameValue(
    16   typeof TypedArray.prototype.item,
     16  typeof TypedArray.prototype.at,
    1717  'function',
    18   'The value of `typeof TypedArray.prototype.item` is "function"'
     18  'The value of `typeof TypedArray.prototype.at` is "function"'
    1919);
    2020
    2121testWithTypedArrayConstructors(TA => {
    22   assert.sameValue(typeof TA.prototype.item, 'function', 'The value of `typeof TA.prototype.item` is "function"');
     22  assert.sameValue(typeof TA.prototype.at, 'function', 'The value of `typeof TA.prototype.at` is "function"');
    2323  let a = new TA([0,1,2,3]);
    2424
    2525  assert.throws(TypeError, () => {
    26     a.item(Symbol());
    27   }, '`a.item(Symbol())` throws TypeError');
     26    a.at(Symbol());
     27  }, '`a.at(Symbol())` throws TypeError');
    2828});
  • trunk/JSTests/test262/test/built-ins/TypedArray/prototype/at/returns-item-relative-index.js

    r269985 r269986  
    22// This code is governed by the BSD license found in the LICENSE file.
    33/*---
    4 esid: sec-%typedarray%.prototype.item
     4esid: sec-%typedarray%.prototype.at
    55description: >
    66  Returns the item value at the specified relative index
    77info: |
    8   %TypedArray%.prototype.item( index )
     8  %TypedArray%.prototype.at( index )
    99
    1010  Let O be the this value.
     
    2020
    2121includes: [testTypedArray.js]
    22 features: [TypedArray,TypedArray.prototype.item]
     22features: [TypedArray,TypedArray.prototype.at]
    2323---*/
    2424assert.sameValue(
    25   typeof TypedArray.prototype.item,
     25  typeof TypedArray.prototype.at,
    2626  'function',
    27   'The value of `typeof TypedArray.prototype.item` is "function"'
     27  'The value of `typeof TypedArray.prototype.at` is "function"'
    2828);
    2929
    3030testWithTypedArrayConstructors(TA => {
    3131  let a = new TA([1, 2, 3, 4, 5]);
    32   assert.sameValue(a.item(0), 1, 'a.item(0) must return 1');
    33   assert.sameValue(a.item(-1), 5, 'a.item(-1) must return 5');
    34   assert.sameValue(a.item(-2), 4, 'a.item(-2) must return 4');
    35   assert.sameValue(a.item(-3), 3, 'a.item(-3) must return 3');
    36   assert.sameValue(a.item(-4), 2, 'a.item(-4) must return 2');
     32  assert.sameValue(a.at(0), 1, 'a.at(0) must return 1');
     33  assert.sameValue(a.at(-1), 5, 'a.at(-1) must return 5');
     34  assert.sameValue(a.at(-2), 4, 'a.at(-2) must return 4');
     35  assert.sameValue(a.at(-3), 3, 'a.at(-3) must return 3');
     36  assert.sameValue(a.at(-4), 2, 'a.at(-4) must return 2');
    3737});
  • trunk/JSTests/test262/test/built-ins/TypedArray/prototype/at/returns-item.js

    r269985 r269986  
    22// This code is governed by the BSD license found in the LICENSE file.
    33/*---
    4 esid: sec-%typedarray%.prototype.item
     4esid: sec-%typedarray%.prototype.at
    55description: >
    66  Returns the item value at the specified index
    77info: |
    8   %TypedArray%.prototype.item( index )
     8  %TypedArray%.prototype.at( index )
    99
    1010  Let O be the this value.
     
    2020
    2121includes: [testTypedArray.js]
    22 features: [TypedArray,TypedArray.prototype.item]
     22features: [TypedArray,TypedArray.prototype.at]
    2323---*/
    2424assert.sameValue(
    25   typeof TypedArray.prototype.item,
     25  typeof TypedArray.prototype.at,
    2626  'function',
    27   'The value of `typeof TypedArray.prototype.item` is "function"'
     27  'The value of `typeof TypedArray.prototype.at` is "function"'
    2828);
    2929
    3030testWithTypedArrayConstructors(TA => {
    31   assert.sameValue(typeof TA.prototype.item, 'function', 'The value of `typeof TA.prototype.item` is "function"');
     31  assert.sameValue(typeof TA.prototype.at, 'function', 'The value of `typeof TA.prototype.at` is "function"');
    3232  let a = new TA([1, 2, 3, 4]);
    3333
    34   assert.sameValue(a.item(0), 1, 'a.item(0) must return 1');
    35   assert.sameValue(a.item(1), 2, 'a.item(1) must return 2');
    36   assert.sameValue(a.item(2), 3, 'a.item(2) must return 3');
    37   assert.sameValue(a.item(3), 4, 'a.item(3) must return 4');
     34  assert.sameValue(a.at(0), 1, 'a.at(0) must return 1');
     35  assert.sameValue(a.at(1), 2, 'a.at(1) must return 2');
     36  assert.sameValue(a.at(2), 3, 'a.at(2) must return 3');
     37  assert.sameValue(a.at(3), 4, 'a.at(3) must return 4');
    3838});
  • trunk/JSTests/test262/test/built-ins/TypedArrayConstructors/internals/GetOwnProperty/index-prop-desc.js

    r269737 r269986  
    11// Copyright (C) 2016 the V8 project authors. All rights reserved.
     2// Copyright (C) 2020 Apple Inc. All rights reserved.
    23// This code is governed by the BSD license found in the LICENSE file.
    34/*---
     
    3132  assert.sameValue(descriptor0.writable, true);
    3233
    33   assert.sameValue(descriptor1.value, 42);
     34  assert.sameValue(descriptor1.value, 43);
    3435  assert.sameValue(descriptor1.configurable, true);
    3536  assert.sameValue(descriptor1.enumerable, true);
  • trunk/JSTests/test262/test/language/global-code/decl-lex-configurable-global.js

    r204851 r269986  
    2020         ii. Else,
    2121             1. Perform ? envRec.CreateMutableBinding(dn, false).
    22 includes: [propertyHelper.js]
    2322---*/
    2423
     
    2625
    2726assert.sameValue(Array, undefined);
     27assert.sameValue(typeof this.Array, 'function');
    2828
    29 assert.sameValue(typeof this.Array, 'function');
    30 verifyNotEnumerable(this, 'Array');
    31 verifyWritable(this, 'Array');
    32 verifyConfigurable(this, 'Array');
     29// DO NOT USE propertyHelper API!
     30let descriptor = Object.getOwnPropertyDescriptor(this, 'Array');
     31assert.sameValue(descriptor.configurable, true);
     32assert.sameValue(descriptor.enumerable, false);
     33assert.sameValue(descriptor.writable, true);
  • trunk/JSTests/test262/test262-Revision.txt

    r269737 r269986  
    1 test262 remote url: git@github.com:tc39/test262.git
    2 test262 revision: 1c33fdb0ca60fb9d7392403be769ed0d26209132
     1test262 remote url: https://github.com/tc39/test262.git
     2test262 revision: 2e5ff2461b63119ace0d8643f5c09fd4f3930906
Note: See TracChangeset for help on using the changeset viewer.