Changeset 269986 in webkit
- Timestamp:
- Nov 18, 2020 2:26:29 PM (3 years ago)
- Location:
- trunk/JSTests
- Files:
-
- 23 added
- 3 deleted
- 7 edited
- 13 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/JSTests/ChangeLog
r269974 r269986 1 2020-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 1 14 2020-11-18 Yusuke Suzuki <ysuzuki@apple.com> 2 15 -
trunk/JSTests/test262/config.yaml
r269939 r269986 9 9 SharedArrayBuffer: useSharedArrayBuffer 10 10 Atomics: useSharedArrayBuffer 11 Array.prototype.at: useAtMethod 12 TypedArray.prototype.at: useAtMethod 11 13 skip: 12 14 features: … … 27 29 - Intl.ListFormat 28 30 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 35 32 paths: 36 33 - test/built-ins/DataView/prototype/getBigInt64 -
trunk/JSTests/test262/expectations.yaml
r269737 r269986 824 824 default: 'SyntaxError: Invalid regular expression: number too large in {} quantifier' 825 825 strict mode: 'SyntaxError: Invalid regular expression: number too large in {} quantifier' 826 test/built-ins/TypedArray/prototype/at/prop-desc.js: 827 default: 'Test262Error: descriptor should be writable' 828 strict mode: 'Test262Error: descriptor should be writable' 826 829 test/built-ins/TypedArray/prototype/includes/detached-buffer-tointeger.js: 827 830 default: 'Test262Error: Expected a TypeError to be thrown but no exception was thrown at all (Testing with Float64Array.)' … … 893 896 default: 'Test262Error: Expected a TypeError to be thrown but no exception was thrown at all (Testing with Float64Array.)' 894 897 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.)'898 898 test/built-ins/TypedArrayConstructors/internals/Set/key-is-minus-zero.js: 899 899 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 1 R062 test/built-ins/Array/prototype/item/index-argument-tointeger.js test/built-ins/Array/prototype/at/index-argument-tointeger.js 2 R057 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 3 A test/built-ins/Array/prototype/at/index-non-numeric-argument-tointeger.js 4 A test/built-ins/Array/prototype/at/length.js 5 A test/built-ins/Array/prototype/at/name.js 6 A test/built-ins/Array/prototype/at/prop-desc.js 7 A test/built-ins/Array/prototype/at/return-abrupt-from-this.js 8 R053 test/built-ins/Array/prototype/item/returns-item-relative-index.js test/built-ins/Array/prototype/at/returns-item-relative-index.js 9 R050 test/built-ins/Array/prototype/item/returns-item.js test/built-ins/Array/prototype/at/returns-item.js 10 A test/built-ins/Array/prototype/at/returns-undefined-for-holes-in-sparse-arrays.js 11 A test/built-ins/Array/prototype/at/returns-undefined-for-out-of-range-index.js 12 D test/built-ins/Array/prototype/item/index-non-numeric-argument-tointeger.js 13 D test/built-ins/Array/prototype/item/length.js 14 D test/built-ins/Array/prototype/item/name.js 15 D test/built-ins/Array/prototype/item/prop-desc.js 16 D test/built-ins/Array/prototype/item/return-abrupt-from-this.js 17 D test/built-ins/Array/prototype/item/returns-undefined-for-holes-in-sparse-arrays.js 18 D test/built-ins/Array/prototype/item/returns-undefined-for-out-of-range-index.js 19 R062 test/built-ins/String/prototype/item/index-argument-tointeger.js test/built-ins/String/prototype/at/index-argument-tointeger.js 20 R056 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 21 A test/built-ins/String/prototype/at/index-non-numeric-argument-tointeger.js 22 A test/built-ins/String/prototype/at/length.js 23 A test/built-ins/String/prototype/at/name.js 24 A test/built-ins/String/prototype/at/prop-desc.js 25 A test/built-ins/String/prototype/at/return-abrupt-from-this.js 26 R052 test/built-ins/String/prototype/item/returns-code-unit.js test/built-ins/String/prototype/at/returns-code-unit.js 27 R056 test/built-ins/String/prototype/item/returns-item-relative-index.js test/built-ins/String/prototype/at/returns-item-relative-index.js 28 R053 test/built-ins/String/prototype/item/returns-item.js test/built-ins/String/prototype/at/returns-item.js 29 A test/built-ins/String/prototype/at/returns-undefined-for-out-of-range-index.js 30 D test/built-ins/String/prototype/item/index-non-numeric-argument-tointeger.js 31 D test/built-ins/String/prototype/item/length.js 32 D test/built-ins/String/prototype/item/name.js 33 D test/built-ins/String/prototype/item/prop-desc.js 34 D test/built-ins/String/prototype/item/return-abrupt-from-this.js 35 D test/built-ins/String/prototype/item/returns-undefined-for-out-of-range-index.js 36 R056 test/built-ins/TypedArray/prototype/item/index-argument-tointeger.js test/built-ins/TypedArray/prototype/at/index-argument-tointeger.js 37 R050 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 38 A test/built-ins/TypedArray/prototype/at/index-non-numeric-argument-tointeger.js 39 A test/built-ins/TypedArray/prototype/at/length.js 40 A test/built-ins/TypedArray/prototype/at/name.js 41 A test/built-ins/TypedArray/prototype/at/prop-desc.js 42 A test/built-ins/TypedArray/prototype/at/return-abrupt-from-this.js 43 R055 test/built-ins/TypedArray/prototype/item/returns-item-relative-index.js test/built-ins/TypedArray/prototype/at/returns-item-relative-index.js 44 R053 test/built-ins/TypedArray/prototype/item/returns-item.js test/built-ins/TypedArray/prototype/at/returns-item.js 45 A test/built-ins/TypedArray/prototype/at/returns-undefined-for-holes-in-sparse-arrays.js 46 A test/built-ins/TypedArray/prototype/at/returns-undefined-for-out-of-range-index.js 47 D test/built-ins/TypedArray/prototype/item/index-non-numeric-argument-tointeger.js 48 D test/built-ins/TypedArray/prototype/item/length.js 49 D test/built-ins/TypedArray/prototype/item/name.js 50 D test/built-ins/TypedArray/prototype/item/prop-desc.js 51 D test/built-ins/TypedArray/prototype/item/return-abrupt-from-this.js 52 D test/built-ins/TypedArray/prototype/item/returns-undefined-for-holes-in-sparse-arrays.js 53 D test/built-ins/TypedArray/prototype/item/returns-undefined-for-out-of-range-index.js 44 54 M 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 55 M test/language/global-code/decl-lex-configurable-global.js -
trunk/JSTests/test262/test/built-ins/Array/prototype/at/index-argument-tointeger.js
r269985 r269986 2 2 // This code is governed by the BSD license found in the LICENSE file. 3 3 /*--- 4 esid: sec-array.prototype. item4 esid: sec-array.prototype.at 5 5 description: > 6 6 Property type and descriptor. 7 7 info: | 8 Array.prototype. item( index )8 Array.prototype.at( index ) 9 9 10 10 Let relativeIndex be ? ToInteger(index). 11 11 12 features: [Array.prototype. item]12 features: [Array.prototype.at] 13 13 ---*/ 14 assert.sameValue(typeof Array.prototype. item, 'function');14 assert.sameValue(typeof Array.prototype.at, 'function'); 15 15 16 16 let valueOfCallCount = 0; … … 24 24 let a = [0,1,2,3]; 25 25 26 assert.sameValue(a. item(index), 1, 'a.item({valueOf() {valueOfCallCount++; return 1;}}) must return 1');26 assert.sameValue(a.at(index), 1, 'a.at({valueOf() {valueOfCallCount++; return 1;}}) must return 1'); 27 27 assert.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 2 2 // This code is governed by the BSD license found in the LICENSE file. 3 3 /*--- 4 esid: sec-array.prototype. item4 esid: sec-array.prototype.at 5 5 description: > 6 6 Property type and descriptor. 7 7 info: | 8 Array.prototype. item( index )8 Array.prototype.at( index ) 9 9 10 10 Let relativeIndex be ? ToInteger(index). 11 11 12 features: [Array.prototype. item]12 features: [Array.prototype.at] 13 13 ---*/ 14 assert.sameValue(typeof Array.prototype. item, 'function');14 assert.sameValue(typeof Array.prototype.at, 'function'); 15 15 16 16 let a = [0,1,2,3]; 17 17 18 18 assert.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 2 2 // This code is governed by the BSD license found in the LICENSE file. 3 3 /*--- 4 esid: sec-array.prototype. item4 esid: sec-array.prototype.at 5 5 description: > 6 6 Returns the item value at the specified relative index 7 7 info: | 8 Array.prototype item( )8 Array.prototype.at ( ) 9 9 10 10 Let O be ? ToObject(this value). … … 18 18 Return ? Get(O, ! ToString(k)). 19 19 20 features: [Array.prototype. item]20 features: [Array.prototype.at] 21 21 ---*/ 22 assert.sameValue(typeof Array.prototype. item, 'function');22 assert.sameValue(typeof Array.prototype.at, 'function'); 23 23 24 24 let a = [1, 2, 3, 4, ,5]; 25 25 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');26 assert.sameValue(a.at(0), 1, 'a.at(0) must return 1'); 27 assert.sameValue(a.at(-1), 5, 'a.at(-1) must return 5'); 28 assert.sameValue(a.at(-2), undefined, 'a.at(-2) must return undefined'); 29 assert.sameValue(a.at(-3), 4, 'a.at(-3) must return 4'); 30 assert.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 2 2 // This code is governed by the BSD license found in the LICENSE file. 3 3 /*--- 4 esid: sec-array.prototype. item4 esid: sec-array.prototype.at 5 5 description: > 6 6 Returns the item value at the specified index 7 7 info: | 8 Array.prototype item( )8 Array.prototype.at ( ) 9 9 10 10 Let O be ? ToObject(this value). … … 18 18 Return ? Get(O, ! ToString(k)). 19 19 20 features: [Array.prototype. item]20 features: [Array.prototype.at] 21 21 ---*/ 22 assert.sameValue(typeof Array.prototype. item, 'function');22 assert.sameValue(typeof Array.prototype.at, 'function'); 23 23 24 24 let a = [1, 2, 3, 4,,5]; 25 25 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');26 assert.sameValue(a.at(0), 1, 'a.at(0) must return 1'); 27 assert.sameValue(a.at(1), 2, 'a.at(1) must return 2'); 28 assert.sameValue(a.at(2), 3, 'a.at(2) must return 3'); 29 assert.sameValue(a.at(3), 4, 'a.at(3) must return 4'); 30 assert.sameValue(a.at(4), undefined, 'a.at(4) must return undefined'); 31 assert.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 2 2 // This code is governed by the BSD license found in the LICENSE file. 3 3 /*--- 4 esid: sec-string.prototype. item4 esid: sec-string.prototype.at 5 5 description: > 6 6 Property type and descriptor. 7 7 info: | 8 String.prototype. item( index )8 String.prototype.at( index ) 9 9 10 10 Let relativeIndex be ? ToInteger(index). 11 11 12 features: [String.prototype. item]12 features: [String.prototype.at] 13 13 ---*/ 14 assert.sameValue(typeof String.prototype. item, 'function');14 assert.sameValue(typeof String.prototype.at, 'function'); 15 15 16 16 let valueOfCallCount = 0; … … 24 24 let s = "01"; 25 25 26 assert.sameValue(s. item(index), '1', 's.item({valueOf() {valueOfCallCount++; return 1;}}) must return 1');26 assert.sameValue(s.at(index), '1', 's.at({valueOf() {valueOfCallCount++; return 1;}}) must return 1'); 27 27 assert.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 2 2 // This code is governed by the BSD license found in the LICENSE file. 3 3 /*--- 4 esid: sec-string.prototype. item4 esid: sec-string.prototype.at 5 5 description: > 6 6 Property type and descriptor. 7 7 info: | 8 String.prototype. item( index )8 String.prototype.at( index ) 9 9 10 10 Let relativeIndex be ? ToInteger(index). 11 11 12 features: [String.prototype. item]12 features: [String.prototype.at] 13 13 ---*/ 14 assert.sameValue(typeof String.prototype. item, 'function');14 assert.sameValue(typeof String.prototype.at, 'function'); 15 15 16 16 let s = "01"; 17 17 18 18 assert.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 2 2 // This code is governed by the BSD license found in the LICENSE file. 3 3 /*--- 4 esid: sec-String.prototype. item4 esid: sec-String.prototype.at 5 5 description: > 6 6 The method should return an Iterator instance. 7 7 info: | 8 String.prototype item( )8 String.prototype.at ( ) 9 9 10 10 Let O be ? ToObject(this value). … … 18 18 Return ? Get(O, ! ToString(k)). 19 19 20 features: [String.prototype. item]20 features: [String.prototype.at] 21 21 ---*/ 22 assert.sameValue(typeof String.prototype. item, 'function');22 assert.sameValue(typeof String.prototype.at, 'function'); 23 23 24 24 let s = "12\uD80034"; 25 25 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"');26 assert.sameValue(s.at(0), "1", 's.at(0) must return "1"'); 27 assert.sameValue(s.at(1), "2", 's.at(1) must return "2"'); 28 assert.sameValue(s.at(2), "\uD800", 's.at(2) must return "\\uD800"'); 29 assert.sameValue(s.at(3), "3", 's.at(3) must return "3"'); 30 assert.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 2 2 // This code is governed by the BSD license found in the LICENSE file. 3 3 /*--- 4 esid: sec-String.prototype item4 esid: sec-String.prototype.at 5 5 description: > 6 6 Returns the item value at the specified relative index 7 7 info: | 8 String.prototype item( )8 String.prototype.at ( ) 9 9 10 10 Let O be ? ToObject(this value). … … 18 18 Return ? Get(O, ! ToString(k)). 19 19 20 features: [String.prototype. item]20 features: [String.prototype.at] 21 21 ---*/ 22 assert.sameValue(typeof String.prototype. item, 'function');22 assert.sameValue(typeof String.prototype.at, 'function'); 23 23 24 24 let s = "12345"; 25 25 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"');26 assert.sameValue(s.at(0), "1", 's.at(0) must return "1"'); 27 assert.sameValue(s.at(-1), "5", 's.at(-1) must return "5"'); 28 assert.sameValue(s.at(-3), "3", 's.at(-3) must return "3"'); 29 assert.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 2 2 // This code is governed by the BSD license found in the LICENSE file. 3 3 /*--- 4 esid: sec-String.prototype item4 esid: sec-String.prototype.at 5 5 description: > 6 6 Returns the item value at the specified index 7 7 info: | 8 String.prototype item( )8 String.prototype.at ( ) 9 9 10 10 Let O be ? ToObject(this value). … … 18 18 Return ? Get(O, ! ToString(k)). 19 19 20 features: [String.prototype. item]20 features: [String.prototype.at] 21 21 ---*/ 22 assert.sameValue(typeof String.prototype. item, 'function');22 assert.sameValue(typeof String.prototype.at, 'function'); 23 23 24 24 let s = "12345"; 25 25 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"');26 assert.sameValue(s.at(0), "1", 's.at(0) must return "1"'); 27 assert.sameValue(s.at(1), "2", 's.at(1) must return "2"'); 28 assert.sameValue(s.at(2), "3", 's.at(2) must return "3"'); 29 assert.sameValue(s.at(3), "4", 's.at(3) must return "4"'); 30 assert.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 2 2 // This code is governed by the BSD license found in the LICENSE file. 3 3 /*--- 4 esid: sec-%typedarray%.prototype. item4 esid: sec-%typedarray%.prototype.at 5 5 description: > 6 6 Property type and descriptor. 7 7 info: | 8 %TypedArray%.prototype. item( index )8 %TypedArray%.prototype.at( index ) 9 9 10 10 Let relativeIndex be ? ToInteger(index). 11 11 12 12 includes: [testTypedArray.js] 13 features: [TypedArray, TypedArray.prototype. item]13 features: [TypedArray, TypedArray.prototype.at] 14 14 ---*/ 15 15 assert.sameValue( 16 typeof TypedArray.prototype. item,16 typeof TypedArray.prototype.at, 17 17 'function', 18 'The value of `typeof TypedArray.prototype. item` is "function"'18 'The value of `typeof TypedArray.prototype.at` is "function"' 19 19 ); 20 20 21 21 testWithTypedArrayConstructors(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"'); 23 23 let valueOfCallCount = 0; 24 24 let index = { … … 31 31 let a = new TA([0,1,2,3]); 32 32 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'); 34 34 assert.sameValue(valueOfCallCount, 1, 'The value of `valueOfCallCount` is 1'); 35 35 }); -
trunk/JSTests/test262/test/built-ins/TypedArray/prototype/at/index-non-numeric-argument-tointeger-invalid.js
r269985 r269986 2 2 // This code is governed by the BSD license found in the LICENSE file. 3 3 /*--- 4 esid: sec-%typedarray%.prototype. item4 esid: sec-%typedarray%.prototype.at 5 5 description: > 6 6 Property type and descriptor. 7 7 info: | 8 %TypedArray%.prototype. item( index )8 %TypedArray%.prototype.at( index ) 9 9 10 10 Let relativeIndex be ? ToInteger(index). 11 11 12 12 includes: [testTypedArray.js] 13 features: [TypedArray, TypedArray.prototype. item]13 features: [TypedArray, TypedArray.prototype.at] 14 14 ---*/ 15 15 assert.sameValue( 16 typeof TypedArray.prototype. item,16 typeof TypedArray.prototype.at, 17 17 'function', 18 'The value of `typeof TypedArray.prototype. item` is "function"'18 'The value of `typeof TypedArray.prototype.at` is "function"' 19 19 ); 20 20 21 21 testWithTypedArrayConstructors(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"'); 23 23 let a = new TA([0,1,2,3]); 24 24 25 25 assert.throws(TypeError, () => { 26 a. item(Symbol());27 }, '`a. item(Symbol())` throws TypeError');26 a.at(Symbol()); 27 }, '`a.at(Symbol())` throws TypeError'); 28 28 }); -
trunk/JSTests/test262/test/built-ins/TypedArray/prototype/at/returns-item-relative-index.js
r269985 r269986 2 2 // This code is governed by the BSD license found in the LICENSE file. 3 3 /*--- 4 esid: sec-%typedarray%.prototype. item4 esid: sec-%typedarray%.prototype.at 5 5 description: > 6 6 Returns the item value at the specified relative index 7 7 info: | 8 %TypedArray%.prototype. item( index )8 %TypedArray%.prototype.at( index ) 9 9 10 10 Let O be the this value. … … 20 20 21 21 includes: [testTypedArray.js] 22 features: [TypedArray,TypedArray.prototype. item]22 features: [TypedArray,TypedArray.prototype.at] 23 23 ---*/ 24 24 assert.sameValue( 25 typeof TypedArray.prototype. item,25 typeof TypedArray.prototype.at, 26 26 'function', 27 'The value of `typeof TypedArray.prototype. item` is "function"'27 'The value of `typeof TypedArray.prototype.at` is "function"' 28 28 ); 29 29 30 30 testWithTypedArrayConstructors(TA => { 31 31 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'); 37 37 }); -
trunk/JSTests/test262/test/built-ins/TypedArray/prototype/at/returns-item.js
r269985 r269986 2 2 // This code is governed by the BSD license found in the LICENSE file. 3 3 /*--- 4 esid: sec-%typedarray%.prototype. item4 esid: sec-%typedarray%.prototype.at 5 5 description: > 6 6 Returns the item value at the specified index 7 7 info: | 8 %TypedArray%.prototype. item( index )8 %TypedArray%.prototype.at( index ) 9 9 10 10 Let O be the this value. … … 20 20 21 21 includes: [testTypedArray.js] 22 features: [TypedArray,TypedArray.prototype. item]22 features: [TypedArray,TypedArray.prototype.at] 23 23 ---*/ 24 24 assert.sameValue( 25 typeof TypedArray.prototype. item,25 typeof TypedArray.prototype.at, 26 26 'function', 27 'The value of `typeof TypedArray.prototype. item` is "function"'27 'The value of `typeof TypedArray.prototype.at` is "function"' 28 28 ); 29 29 30 30 testWithTypedArrayConstructors(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"'); 32 32 let a = new TA([1, 2, 3, 4]); 33 33 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'); 38 38 }); -
trunk/JSTests/test262/test/built-ins/TypedArrayConstructors/internals/GetOwnProperty/index-prop-desc.js
r269737 r269986 1 1 // Copyright (C) 2016 the V8 project authors. All rights reserved. 2 // Copyright (C) 2020 Apple Inc. All rights reserved. 2 3 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- … … 31 32 assert.sameValue(descriptor0.writable, true); 32 33 33 assert.sameValue(descriptor1.value, 4 2);34 assert.sameValue(descriptor1.value, 43); 34 35 assert.sameValue(descriptor1.configurable, true); 35 36 assert.sameValue(descriptor1.enumerable, true); -
trunk/JSTests/test262/test/language/global-code/decl-lex-configurable-global.js
r204851 r269986 20 20 ii. Else, 21 21 1. Perform ? envRec.CreateMutableBinding(dn, false). 22 includes: [propertyHelper.js]23 22 ---*/ 24 23 … … 26 25 27 26 assert.sameValue(Array, undefined); 27 assert.sameValue(typeof this.Array, 'function'); 28 28 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! 30 let descriptor = Object.getOwnPropertyDescriptor(this, 'Array'); 31 assert.sameValue(descriptor.configurable, true); 32 assert.sameValue(descriptor.enumerable, false); 33 assert.sameValue(descriptor.writable, true); -
trunk/JSTests/test262/test262-Revision.txt
r269737 r269986 1 test262 remote url: git@github.com:tc39/test262.git2 test262 revision: 1c33fdb0ca60fb9d7392403be769ed0d262091321 test262 remote url: https://github.com/tc39/test262.git 2 test262 revision: 2e5ff2461b63119ace0d8643f5c09fd4f3930906
Note: See TracChangeset
for help on using the changeset viewer.