From 26a029d407be480d791972afb5975cf62c9360a6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 02:47:55 +0200 Subject: Adding upstream version 124.0.1. Signed-off-by: Daniel Baumann --- .../prototype/Symbol.iterator.js | 15 ++ .../Symbol.toStringTag/bigint-inherited.js | 16 ++ .../prototype/Symbol.toStringTag/browser.js | 0 .../prototype/Symbol.toStringTag/inherited.js | 16 ++ .../prototype/Symbol.toStringTag/shell.js | 0 .../prototype/bigint-Symbol.iterator.js | 15 ++ .../TypedArrayConstructors/prototype/browser.js | 0 .../prototype/buffer/bigint-inherited.js | 15 ++ .../prototype/buffer/browser.js | 0 .../prototype/buffer/inherited.js | 15 ++ .../prototype/buffer/shell.js | 0 .../prototype/byteLength/bigint-inherited.js | 15 ++ .../prototype/byteLength/browser.js | 0 .../prototype/byteLength/inherited.js | 15 ++ .../prototype/byteLength/shell.js | 0 .../prototype/byteOffset/bigint-inherited.js | 15 ++ .../prototype/byteOffset/browser.js | 0 .../prototype/byteOffset/inherited.js | 15 ++ .../prototype/byteOffset/shell.js | 0 .../prototype/copyWithin/bigint-inherited.js | 15 ++ .../prototype/copyWithin/browser.js | 0 .../prototype/copyWithin/inherited.js | 15 ++ .../prototype/copyWithin/shell.js | 0 .../prototype/entries/bigint-inherited.js | 15 ++ .../prototype/entries/browser.js | 0 .../prototype/entries/inherited.js | 15 ++ .../prototype/entries/shell.js | 0 .../prototype/every/bigint-inherited.js | 15 ++ .../prototype/every/browser.js | 0 .../prototype/every/inherited.js | 15 ++ .../prototype/every/shell.js | 0 .../prototype/fill/bigint-inherited.js | 15 ++ .../prototype/fill/browser.js | 0 .../prototype/fill/inherited.js | 15 ++ .../TypedArrayConstructors/prototype/fill/shell.js | 0 .../prototype/filter/bigint-inherited.js | 15 ++ .../prototype/filter/browser.js | 0 .../prototype/filter/inherited.js | 15 ++ .../prototype/filter/shell.js | 0 .../prototype/find/bigint-inherited.js | 15 ++ .../prototype/find/browser.js | 0 .../prototype/find/inherited.js | 15 ++ .../TypedArrayConstructors/prototype/find/shell.js | 0 .../prototype/findIndex/bigint-inherited.js | 15 ++ .../prototype/findIndex/browser.js | 0 .../prototype/findIndex/inherited.js | 15 ++ .../prototype/findIndex/shell.js | 0 .../prototype/forEach/bigint-inherited.js | 15 ++ .../prototype/forEach/browser.js | 0 .../prototype/forEach/inherited.js | 15 ++ .../prototype/forEach/shell.js | 0 .../prototype/indexOf/bigint-inherited.js | 15 ++ .../prototype/indexOf/browser.js | 0 .../prototype/indexOf/inherited.js | 15 ++ .../prototype/indexOf/shell.js | 0 .../prototype/join/bigint-inherited.js | 15 ++ .../prototype/join/browser.js | 0 .../prototype/join/inherited.js | 15 ++ .../TypedArrayConstructors/prototype/join/shell.js | 0 .../prototype/keys/bigint-inherited.js | 15 ++ .../prototype/keys/browser.js | 0 .../prototype/keys/inherited.js | 15 ++ .../TypedArrayConstructors/prototype/keys/shell.js | 0 .../prototype/lastIndexOf/bigint-inherited.js | 15 ++ .../prototype/lastIndexOf/browser.js | 0 .../prototype/lastIndexOf/inherited.js | 15 ++ .../prototype/lastIndexOf/shell.js | 0 .../prototype/length/bigint-inherited.js | 15 ++ .../prototype/length/browser.js | 0 .../prototype/length/inherited.js | 15 ++ .../prototype/length/shell.js | 0 .../prototype/map/bigint-inherited.js | 15 ++ .../prototype/map/browser.js | 0 .../prototype/map/inherited.js | 15 ++ .../TypedArrayConstructors/prototype/map/shell.js | 0 .../prototype/reduce/bigint-inherited.js | 15 ++ .../prototype/reduce/browser.js | 0 .../prototype/reduce/inherited.js | 15 ++ .../prototype/reduce/shell.js | 0 .../prototype/reduceRight/bigint-inherited.js | 15 ++ .../prototype/reduceRight/browser.js | 0 .../prototype/reduceRight/inherited.js | 15 ++ .../prototype/reduceRight/shell.js | 0 .../prototype/reverse/bigint-inherited.js | 15 ++ .../prototype/reverse/browser.js | 0 .../prototype/reverse/inherited.js | 15 ++ .../prototype/reverse/shell.js | 0 .../prototype/set/bigint-inherited.js | 15 ++ .../prototype/set/browser.js | 0 .../prototype/set/inherited.js | 15 ++ .../TypedArrayConstructors/prototype/set/shell.js | 0 .../TypedArrayConstructors/prototype/shell.js | 203 +++++++++++++++++++++ .../prototype/slice/bigint-inherited.js | 15 ++ .../prototype/slice/browser.js | 0 .../prototype/slice/inherited.js | 15 ++ .../prototype/slice/shell.js | 0 .../prototype/some/bigint-inherited.js | 15 ++ .../prototype/some/browser.js | 0 .../prototype/some/inherited.js | 15 ++ .../TypedArrayConstructors/prototype/some/shell.js | 0 .../prototype/sort/bigint-inherited.js | 15 ++ .../prototype/sort/browser.js | 0 .../prototype/sort/inherited.js | 15 ++ .../TypedArrayConstructors/prototype/sort/shell.js | 0 .../prototype/subarray/bigint-inherited.js | 15 ++ .../prototype/subarray/browser.js | 0 .../prototype/subarray/inherited.js | 15 ++ .../prototype/subarray/shell.js | 0 .../prototype/toLocaleString/bigint-inherited.js | 15 ++ .../prototype/toLocaleString/browser.js | 0 .../prototype/toLocaleString/inherited.js | 15 ++ .../prototype/toLocaleString/shell.js | 0 .../prototype/toString/bigint-inherited.js | 15 ++ .../prototype/toString/browser.js | 0 .../prototype/toString/inherited.js | 15 ++ .../prototype/toString/shell.js | 0 .../prototype/values/bigint-inherited.js | 15 ++ .../prototype/values/browser.js | 0 .../prototype/values/inherited.js | 15 ++ .../prototype/values/shell.js | 0 120 files changed, 1105 insertions(+) create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/Symbol.iterator.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/Symbol.toStringTag/bigint-inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/Symbol.toStringTag/browser.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/Symbol.toStringTag/inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/Symbol.toStringTag/shell.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/bigint-Symbol.iterator.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/browser.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/buffer/bigint-inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/buffer/browser.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/buffer/inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/buffer/shell.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/byteLength/bigint-inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/byteLength/browser.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/byteLength/inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/byteLength/shell.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/byteOffset/bigint-inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/byteOffset/browser.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/byteOffset/inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/byteOffset/shell.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/copyWithin/bigint-inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/copyWithin/browser.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/copyWithin/inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/copyWithin/shell.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/entries/bigint-inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/entries/browser.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/entries/inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/entries/shell.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/every/bigint-inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/every/browser.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/every/inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/every/shell.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/fill/bigint-inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/fill/browser.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/fill/inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/fill/shell.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/filter/bigint-inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/filter/browser.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/filter/inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/filter/shell.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/find/bigint-inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/find/browser.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/find/inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/find/shell.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/findIndex/bigint-inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/findIndex/browser.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/findIndex/inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/findIndex/shell.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/forEach/bigint-inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/forEach/browser.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/forEach/inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/forEach/shell.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/indexOf/bigint-inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/indexOf/browser.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/indexOf/inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/indexOf/shell.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/join/bigint-inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/join/browser.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/join/inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/join/shell.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/keys/bigint-inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/keys/browser.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/keys/inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/keys/shell.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/lastIndexOf/bigint-inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/lastIndexOf/browser.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/lastIndexOf/inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/lastIndexOf/shell.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/length/bigint-inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/length/browser.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/length/inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/length/shell.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/map/bigint-inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/map/browser.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/map/inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/map/shell.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reduce/bigint-inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reduce/browser.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reduce/inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reduce/shell.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reduceRight/bigint-inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reduceRight/browser.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reduceRight/inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reduceRight/shell.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reverse/bigint-inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reverse/browser.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reverse/inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reverse/shell.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/set/bigint-inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/set/browser.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/set/inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/set/shell.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/shell.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/slice/bigint-inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/slice/browser.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/slice/inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/slice/shell.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/some/bigint-inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/some/browser.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/some/inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/some/shell.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/sort/bigint-inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/sort/browser.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/sort/inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/sort/shell.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/subarray/bigint-inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/subarray/browser.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/subarray/inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/subarray/shell.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/toLocaleString/bigint-inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/toLocaleString/browser.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/toLocaleString/inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/toLocaleString/shell.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/toString/bigint-inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/toString/browser.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/toString/inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/toString/shell.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/values/bigint-inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/values/browser.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/values/inherited.js create mode 100644 js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/values/shell.js (limited to 'js/src/tests/test262/built-ins/TypedArrayConstructors/prototype') diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/Symbol.iterator.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/Symbol.iterator.js new file mode 100644 index 0000000000..6e2f2b41e3 --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/Symbol.iterator.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype-@@iterator +description: > + _TypedArray_.prototype has no own property @@iterator +includes: [testTypedArray.js] +features: [Symbol.iterator, TypedArray] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty(Symbol.iterator), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/Symbol.toStringTag/bigint-inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/Symbol.toStringTag/bigint-inherited.js new file mode 100644 index 0000000000..7b660850a0 --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/Symbol.toStringTag/bigint-inherited.js @@ -0,0 +1,16 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-get-%typedarray%.prototype-@@tostringtag +description: > + _TypedArray_.prototype[@@toStringTag] is inherited from %TypedArray% + _TypedArray_.prototype has no own property @@toStringTag +includes: [testBigIntTypedArray.js] +features: [BigInt, Symbol.toStringTag, TypedArray] +---*/ + +testWithBigIntTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty(Symbol.toStringTag), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/Symbol.toStringTag/browser.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/Symbol.toStringTag/browser.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/Symbol.toStringTag/inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/Symbol.toStringTag/inherited.js new file mode 100644 index 0000000000..d60d3c4b7d --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/Symbol.toStringTag/inherited.js @@ -0,0 +1,16 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-get-%typedarray%.prototype-@@tostringtag +description: > + _TypedArray_.prototype[@@toStringTag] is inherited from %TypedArray% + _TypedArray_.prototype has no own property @@toStringTag +includes: [testTypedArray.js] +features: [Symbol.toStringTag, TypedArray] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty(Symbol.toStringTag), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/Symbol.toStringTag/shell.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/Symbol.toStringTag/shell.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/bigint-Symbol.iterator.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/bigint-Symbol.iterator.js new file mode 100644 index 0000000000..58eaa99291 --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/bigint-Symbol.iterator.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype-@@iterator +description: > + _TypedArray_.prototype has no own property @@iterator +includes: [testBigIntTypedArray.js] +features: [BigInt, Symbol.iterator, TypedArray] +---*/ + +testWithBigIntTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty(Symbol.iterator), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/browser.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/browser.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/buffer/bigint-inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/buffer/bigint-inherited.js new file mode 100644 index 0000000000..becb7ba814 --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/buffer/bigint-inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-get-%typedarray%.prototype.buffer +description: > + _TypedArray_.prototype has no own property "buffer" +includes: [testBigIntTypedArray.js] +features: [BigInt, TypedArray] +---*/ + +testWithBigIntTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("buffer"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/buffer/browser.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/buffer/browser.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/buffer/inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/buffer/inherited.js new file mode 100644 index 0000000000..00fdd19d1b --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/buffer/inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-get-%typedarray%.prototype.buffer +description: > + _TypedArray_.prototype has no own property "buffer" +includes: [testTypedArray.js] +features: [TypedArray] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("buffer"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/buffer/shell.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/buffer/shell.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/byteLength/bigint-inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/byteLength/bigint-inherited.js new file mode 100644 index 0000000000..54eec7c5cf --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/byteLength/bigint-inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-get-%typedarray%.prototype.bytelength +description: > + _TypedArray_.prototype has no own property "byteLength" +includes: [testBigIntTypedArray.js] +features: [BigInt, TypedArray] +---*/ + +testWithBigIntTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("byteLength"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/byteLength/browser.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/byteLength/browser.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/byteLength/inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/byteLength/inherited.js new file mode 100644 index 0000000000..67aa9848a0 --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/byteLength/inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-get-%typedarray%.prototype.bytelength +description: > + _TypedArray_.prototype has no own property "byteLength" +includes: [testTypedArray.js] +features: [TypedArray] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("byteLength"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/byteLength/shell.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/byteLength/shell.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/byteOffset/bigint-inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/byteOffset/bigint-inherited.js new file mode 100644 index 0000000000..2b5e5135f5 --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/byteOffset/bigint-inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-get-%typedarray%.prototype.byteoffset +description: > + _TypedArray_.prototype has no own property "byteOffset" +includes: [testBigIntTypedArray.js] +features: [BigInt, TypedArray] +---*/ + +testWithBigIntTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("byteOffset"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/byteOffset/browser.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/byteOffset/browser.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/byteOffset/inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/byteOffset/inherited.js new file mode 100644 index 0000000000..874d4abd88 --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/byteOffset/inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-get-%typedarray%.prototype.byteoffset +description: > + _TypedArray_.prototype has no own property "byteOffset" +includes: [testTypedArray.js] +features: [TypedArray] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("byteOffset"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/byteOffset/shell.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/byteOffset/shell.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/copyWithin/bigint-inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/copyWithin/bigint-inherited.js new file mode 100644 index 0000000000..4211626dca --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/copyWithin/bigint-inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.copywithin +description: > + _TypedArray_.prototype has no own property "copyWithin" +includes: [testBigIntTypedArray.js] +features: [BigInt, TypedArray] +---*/ + +testWithBigIntTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("copyWithin"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/copyWithin/browser.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/copyWithin/browser.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/copyWithin/inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/copyWithin/inherited.js new file mode 100644 index 0000000000..e831c04e99 --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/copyWithin/inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.copywithin +description: > + _TypedArray_.prototype has no own property "copyWithin" +includes: [testTypedArray.js] +features: [TypedArray] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("copyWithin"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/copyWithin/shell.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/copyWithin/shell.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/entries/bigint-inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/entries/bigint-inherited.js new file mode 100644 index 0000000000..97f91a12b3 --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/entries/bigint-inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.entries +description: > + _TypedArray_.prototype has no own property "entries" +includes: [testBigIntTypedArray.js] +features: [BigInt, TypedArray] +---*/ + +testWithBigIntTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("entries"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/entries/browser.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/entries/browser.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/entries/inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/entries/inherited.js new file mode 100644 index 0000000000..217462a687 --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/entries/inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.entries +description: > + _TypedArray_.prototype has no own property "entries" +includes: [testTypedArray.js] +features: [TypedArray] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("entries"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/entries/shell.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/entries/shell.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/every/bigint-inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/every/bigint-inherited.js new file mode 100644 index 0000000000..8ffd18c52b --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/every/bigint-inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.every +description: > + _TypedArray_.prototype has no own property "every" +includes: [testBigIntTypedArray.js] +features: [BigInt, TypedArray] +---*/ + +testWithBigIntTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("every"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/every/browser.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/every/browser.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/every/inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/every/inherited.js new file mode 100644 index 0000000000..b61168bd9e --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/every/inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.every +description: > + _TypedArray_.prototype has no own property "every" +includes: [testTypedArray.js] +features: [TypedArray] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("every"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/every/shell.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/every/shell.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/fill/bigint-inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/fill/bigint-inherited.js new file mode 100644 index 0000000000..9f549a255a --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/fill/bigint-inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.fill +description: > + _TypedArray_.prototype has no own property "fill" +includes: [testBigIntTypedArray.js] +features: [BigInt, TypedArray] +---*/ + +testWithBigIntTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("fill"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/fill/browser.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/fill/browser.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/fill/inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/fill/inherited.js new file mode 100644 index 0000000000..0a01168f76 --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/fill/inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.fill +description: > + _TypedArray_.prototype has no own property "fill" +includes: [testTypedArray.js] +features: [TypedArray] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("fill"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/fill/shell.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/fill/shell.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/filter/bigint-inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/filter/bigint-inherited.js new file mode 100644 index 0000000000..368f95cc45 --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/filter/bigint-inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.filter +description: > + _TypedArray_.prototype has no own property "filter" +includes: [testBigIntTypedArray.js] +features: [BigInt, TypedArray] +---*/ + +testWithBigIntTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("filter"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/filter/browser.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/filter/browser.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/filter/inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/filter/inherited.js new file mode 100644 index 0000000000..42c177812e --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/filter/inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.filter +description: > + _TypedArray_.prototype has no own property "filter" +includes: [testTypedArray.js] +features: [TypedArray] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("filter"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/filter/shell.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/filter/shell.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/find/bigint-inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/find/bigint-inherited.js new file mode 100644 index 0000000000..c69858aab6 --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/find/bigint-inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.find +description: > + _TypedArray_.prototype has no own property "find" +includes: [testBigIntTypedArray.js] +features: [BigInt, TypedArray] +---*/ + +testWithBigIntTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("find"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/find/browser.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/find/browser.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/find/inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/find/inherited.js new file mode 100644 index 0000000000..1895450c9a --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/find/inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.find +description: > + _TypedArray_.prototype has no own property "find" +includes: [testTypedArray.js] +features: [TypedArray] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("find"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/find/shell.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/find/shell.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/findIndex/bigint-inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/findIndex/bigint-inherited.js new file mode 100644 index 0000000000..9c09040393 --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/findIndex/bigint-inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.findindex +description: > + _TypedArray_.prototype has no own property "findIndex" +includes: [testBigIntTypedArray.js] +features: [BigInt, TypedArray] +---*/ + +testWithBigIntTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("findIndex"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/findIndex/browser.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/findIndex/browser.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/findIndex/inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/findIndex/inherited.js new file mode 100644 index 0000000000..902a419db4 --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/findIndex/inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.findindex +description: > + _TypedArray_.prototype has no own property "findIndex" +includes: [testTypedArray.js] +features: [TypedArray] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("findIndex"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/findIndex/shell.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/findIndex/shell.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/forEach/bigint-inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/forEach/bigint-inherited.js new file mode 100644 index 0000000000..0fd1cef33a --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/forEach/bigint-inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.foreach +description: > + _TypedArray_.prototype has no own property "forEach" +includes: [testBigIntTypedArray.js] +features: [BigInt, TypedArray] +---*/ + +testWithBigIntTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("forEach"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/forEach/browser.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/forEach/browser.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/forEach/inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/forEach/inherited.js new file mode 100644 index 0000000000..bead9ffae5 --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/forEach/inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.foreach +description: > + _TypedArray_.prototype has no own property "forEach" +includes: [testTypedArray.js] +features: [TypedArray] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("forEach"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/forEach/shell.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/forEach/shell.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/indexOf/bigint-inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/indexOf/bigint-inherited.js new file mode 100644 index 0000000000..0f0cc9cbdc --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/indexOf/bigint-inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.indexof +description: > + _TypedArray_.prototype has no own property "indexOf" +includes: [testBigIntTypedArray.js] +features: [BigInt, TypedArray] +---*/ + +testWithBigIntTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("indexOf"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/indexOf/browser.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/indexOf/browser.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/indexOf/inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/indexOf/inherited.js new file mode 100644 index 0000000000..398ba4e107 --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/indexOf/inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.indexof +description: > + _TypedArray_.prototype has no own property "indexOf" +includes: [testTypedArray.js] +features: [TypedArray] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("indexOf"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/indexOf/shell.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/indexOf/shell.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/join/bigint-inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/join/bigint-inherited.js new file mode 100644 index 0000000000..5547b47ea4 --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/join/bigint-inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.join +description: > + _TypedArray_.prototype has no own property "join" +includes: [testBigIntTypedArray.js] +features: [BigInt, TypedArray] +---*/ + +testWithBigIntTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("join"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/join/browser.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/join/browser.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/join/inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/join/inherited.js new file mode 100644 index 0000000000..37badbec58 --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/join/inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.join +description: > + _TypedArray_.prototype has no own property "join" +includes: [testTypedArray.js] +features: [TypedArray] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("join"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/join/shell.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/join/shell.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/keys/bigint-inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/keys/bigint-inherited.js new file mode 100644 index 0000000000..3c5109f19e --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/keys/bigint-inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.keys +description: > + _TypedArray_.prototype has no own property "keys" +includes: [testBigIntTypedArray.js] +features: [BigInt, TypedArray] +---*/ + +testWithBigIntTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("keys"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/keys/browser.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/keys/browser.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/keys/inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/keys/inherited.js new file mode 100644 index 0000000000..a2c0289d1b --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/keys/inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.keys +description: > + _TypedArray_.prototype has no own property "keys" +includes: [testTypedArray.js] +features: [TypedArray] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("keys"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/keys/shell.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/keys/shell.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/lastIndexOf/bigint-inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/lastIndexOf/bigint-inherited.js new file mode 100644 index 0000000000..e228a33678 --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/lastIndexOf/bigint-inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.lastindexof +description: > + _TypedArray_.prototype has no own property "lastIndexOf" +includes: [testBigIntTypedArray.js] +features: [BigInt, TypedArray] +---*/ + +testWithBigIntTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("lastIndexOf"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/lastIndexOf/browser.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/lastIndexOf/browser.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/lastIndexOf/inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/lastIndexOf/inherited.js new file mode 100644 index 0000000000..f9d7dd8626 --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/lastIndexOf/inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.lastindexof +description: > + _TypedArray_.prototype has no own property "lastIndexOf" +includes: [testTypedArray.js] +features: [TypedArray] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("lastIndexOf"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/lastIndexOf/shell.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/lastIndexOf/shell.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/length/bigint-inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/length/bigint-inherited.js new file mode 100644 index 0000000000..187ffcb6a1 --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/length/bigint-inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-get-%typedarray%.prototype.length +description: > + _TypedArray_.prototype has no own property "length" +includes: [testBigIntTypedArray.js] +features: [BigInt, TypedArray] +---*/ + +testWithBigIntTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("length"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/length/browser.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/length/browser.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/length/inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/length/inherited.js new file mode 100644 index 0000000000..e2b9ea33c3 --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/length/inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-get-%typedarray%.prototype.length +description: > + _TypedArray_.prototype has no own property "length" +includes: [testTypedArray.js] +features: [TypedArray] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("length"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/length/shell.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/length/shell.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/map/bigint-inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/map/bigint-inherited.js new file mode 100644 index 0000000000..644c206ea6 --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/map/bigint-inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.map +description: > + _TypedArray_.prototype has no own property "map" +includes: [testBigIntTypedArray.js] +features: [BigInt, TypedArray] +---*/ + +testWithBigIntTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("map"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/map/browser.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/map/browser.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/map/inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/map/inherited.js new file mode 100644 index 0000000000..591322dfe3 --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/map/inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.map +description: > + _TypedArray_.prototype has no own property "map" +includes: [testTypedArray.js] +features: [TypedArray] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("map"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/map/shell.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/map/shell.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reduce/bigint-inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reduce/bigint-inherited.js new file mode 100644 index 0000000000..3cec96d789 --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reduce/bigint-inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-get-%typedarray%.prototype.reduce +description: > + _TypedArray_.prototype has no own property "reduce" +includes: [testBigIntTypedArray.js] +features: [BigInt, TypedArray] +---*/ + +testWithBigIntTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("reduce"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reduce/browser.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reduce/browser.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reduce/inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reduce/inherited.js new file mode 100644 index 0000000000..758118a5d0 --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reduce/inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-get-%typedarray%.prototype.reduce +description: > + _TypedArray_.prototype has no own property "reduce" +includes: [testTypedArray.js] +features: [TypedArray] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("reduce"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reduce/shell.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reduce/shell.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reduceRight/bigint-inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reduceRight/bigint-inherited.js new file mode 100644 index 0000000000..b265f5293d --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reduceRight/bigint-inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.reduceright +description: > + _TypedArray_.prototype has no own property "reduceRight" +includes: [testBigIntTypedArray.js] +features: [BigInt, TypedArray] +---*/ + +testWithBigIntTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("reduceRight"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reduceRight/browser.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reduceRight/browser.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reduceRight/inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reduceRight/inherited.js new file mode 100644 index 0000000000..334b156c1e --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reduceRight/inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.reduceright +description: > + _TypedArray_.prototype has no own property "reduceRight" +includes: [testTypedArray.js] +features: [TypedArray] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("reduceRight"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reduceRight/shell.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reduceRight/shell.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reverse/bigint-inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reverse/bigint-inherited.js new file mode 100644 index 0000000000..6f755a6481 --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reverse/bigint-inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.reverse +description: > + _TypedArray_.prototype has no own property "reverse" +includes: [testBigIntTypedArray.js] +features: [BigInt, TypedArray] +---*/ + +testWithBigIntTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("reverse"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reverse/browser.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reverse/browser.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reverse/inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reverse/inherited.js new file mode 100644 index 0000000000..e6758c7916 --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reverse/inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.reverse +description: > + _TypedArray_.prototype has no own property "reverse" +includes: [testTypedArray.js] +features: [TypedArray] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("reverse"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reverse/shell.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/reverse/shell.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/set/bigint-inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/set/bigint-inherited.js new file mode 100644 index 0000000000..780c7ede57 --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/set/bigint-inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.set +description: > + _TypedArray_.prototype has no own property "set" +includes: [testBigIntTypedArray.js] +features: [BigInt, TypedArray] +---*/ + +testWithBigIntTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("set"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/set/browser.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/set/browser.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/set/inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/set/inherited.js new file mode 100644 index 0000000000..90822be1b2 --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/set/inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.set +description: > + _TypedArray_.prototype has no own property "set" +includes: [testTypedArray.js] +features: [TypedArray] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("set"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/set/shell.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/set/shell.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/shell.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/shell.js new file mode 100644 index 0000000000..2b00837ffb --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/shell.js @@ -0,0 +1,203 @@ +// GENERATED, DO NOT EDIT +// file: testBigIntTypedArray.js +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: | + Collection of functions used to assert the correctness of BigInt TypedArray objects. +defines: + - TypedArray + - testWithBigIntTypedArrayConstructors +---*/ + +/** + * The %TypedArray% intrinsic constructor function. + */ +var TypedArray = Object.getPrototypeOf(Int8Array); + +/** + * Calls the provided function for every typed array constructor. + * + * @param {typedArrayConstructorCallback} f - the function to call for each typed array constructor. + * @param {Array} selected - An optional Array with filtered typed arrays + */ +function testWithBigIntTypedArrayConstructors(f, selected) { + /** + * Array containing every BigInt typed array constructor. + */ + var constructors = selected || [ + BigInt64Array, + BigUint64Array + ]; + + for (var i = 0; i < constructors.length; ++i) { + var constructor = constructors[i]; + try { + f(constructor); + } catch (e) { + e.message += " (Testing with " + constructor.name + ".)"; + throw e; + } + } +} + +// file: testTypedArray.js +// Copyright (C) 2015 André Bargull. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: | + Collection of functions used to assert the correctness of TypedArray objects. +defines: + - floatArrayConstructors + - nonClampedIntArrayConstructors + - intArrayConstructors + - typedArrayConstructors + - TypedArray + - testWithTypedArrayConstructors + - nonAtomicsFriendlyTypedArrayConstructors + - testWithAtomicsFriendlyTypedArrayConstructors + - testWithNonAtomicsFriendlyTypedArrayConstructors + - testTypedArrayConversions +---*/ + +var floatArrayConstructors = [ + Float64Array, + Float32Array +]; + +var nonClampedIntArrayConstructors = [ + Int32Array, + Int16Array, + Int8Array, + Uint32Array, + Uint16Array, + Uint8Array +]; + +var intArrayConstructors = nonClampedIntArrayConstructors.concat([Uint8ClampedArray]); + +// Float16Array is a newer feature +// adding it to this list unconditionally would cause implementations lacking it to fail every test which uses it +if (typeof Float16Array !== 'undefined') { + floatArrayConstructors.push(Float16Array); +} + +/** + * Array containing every non-bigint typed array constructor. + */ + +var typedArrayConstructors = floatArrayConstructors.concat(intArrayConstructors); + +/** + * The %TypedArray% intrinsic constructor function. + */ +var TypedArray = Object.getPrototypeOf(Int8Array); + +/** + * Callback for testing a typed array constructor. + * + * @callback typedArrayConstructorCallback + * @param {Function} Constructor the constructor object to test with. + */ + +/** + * Calls the provided function for every typed array constructor. + * + * @param {typedArrayConstructorCallback} f - the function to call for each typed array constructor. + * @param {Array} selected - An optional Array with filtered typed arrays + */ +function testWithTypedArrayConstructors(f, selected) { + var constructors = selected || typedArrayConstructors; + for (var i = 0; i < constructors.length; ++i) { + var constructor = constructors[i]; + try { + f(constructor); + } catch (e) { + e.message += " (Testing with " + constructor.name + ".)"; + throw e; + } + } +} + +var nonAtomicsFriendlyTypedArrayConstructors = floatArrayConstructors.concat([Uint8ClampedArray]); +/** + * Calls the provided function for every non-"Atomics Friendly" typed array constructor. + * + * @param {typedArrayConstructorCallback} f - the function to call for each typed array constructor. + * @param {Array} selected - An optional Array with filtered typed arrays + */ +function testWithNonAtomicsFriendlyTypedArrayConstructors(f) { + testWithTypedArrayConstructors(f, nonAtomicsFriendlyTypedArrayConstructors); +} + +/** + * Calls the provided function for every "Atomics Friendly" typed array constructor. + * + * @param {typedArrayConstructorCallback} f - the function to call for each typed array constructor. + * @param {Array} selected - An optional Array with filtered typed arrays + */ +function testWithAtomicsFriendlyTypedArrayConstructors(f) { + testWithTypedArrayConstructors(f, [ + Int32Array, + Int16Array, + Int8Array, + Uint32Array, + Uint16Array, + Uint8Array, + ]); +} + +/** + * Helper for conversion operations on TypedArrays, the expected values + * properties are indexed in order to match the respective value for each + * TypedArray constructor + * @param {Function} fn - the function to call for each constructor and value. + * will be called with the constructor, value, expected + * value, and a initial value that can be used to avoid + * a false positive with an equivalent expected value. + */ +function testTypedArrayConversions(byteConversionValues, fn) { + var values = byteConversionValues.values; + var expected = byteConversionValues.expected; + + testWithTypedArrayConstructors(function(TA) { + var name = TA.name.slice(0, -5); + + return values.forEach(function(value, index) { + var exp = expected[name][index]; + var initial = 0; + if (exp === 0) { + initial = 1; + } + fn(TA, value, exp, initial); + }); + }); +} + +/** + * Checks if the given argument is one of the float-based TypedArray constructors. + * + * @param {constructor} ctor - the value to check + * @returns {boolean} + */ +function isFloatTypedArrayConstructor(arg) { + return floatArrayConstructors.indexOf(arg) !== -1; +} + +/** + * Determines the precision of the given float-based TypedArray constructor. + * + * @param {constructor} ctor - the value to check + * @returns {string} "half", "single", or "double" for Float16Array, Float32Array, and Float64Array respectively. + */ +function floatTypedArrayConstructorPrecision(FA) { + if (typeof Float16Array !== "undefined" && FA === Float16Array) { + return "half"; + } else if (FA === Float32Array) { + return "single"; + } else if (FA === Float64Array) { + return "double"; + } else { + throw new Error("Malformed test - floatTypedArrayConstructorPrecision called with non-float TypedArray"); + } +} diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/slice/bigint-inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/slice/bigint-inherited.js new file mode 100644 index 0000000000..835ec76617 --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/slice/bigint-inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.slice +description: > + _TypedArray_.prototype has no own property "slice" +includes: [testBigIntTypedArray.js] +features: [BigInt, TypedArray] +---*/ + +testWithBigIntTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("slice"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/slice/browser.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/slice/browser.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/slice/inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/slice/inherited.js new file mode 100644 index 0000000000..0c4578ee12 --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/slice/inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.slice +description: > + _TypedArray_.prototype has no own property "slice" +includes: [testTypedArray.js] +features: [TypedArray] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("slice"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/slice/shell.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/slice/shell.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/some/bigint-inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/some/bigint-inherited.js new file mode 100644 index 0000000000..20f9f7a526 --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/some/bigint-inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.some +description: > + _TypedArray_.prototype has no own property "some" +includes: [testBigIntTypedArray.js] +features: [BigInt, TypedArray] +---*/ + +testWithBigIntTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("some"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/some/browser.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/some/browser.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/some/inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/some/inherited.js new file mode 100644 index 0000000000..74aefc5a0f --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/some/inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.some +description: > + _TypedArray_.prototype has no own property "some" +includes: [testTypedArray.js] +features: [TypedArray] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("some"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/some/shell.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/some/shell.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/sort/bigint-inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/sort/bigint-inherited.js new file mode 100644 index 0000000000..d265d2605d --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/sort/bigint-inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.sort +description: > + _TypedArray_.prototype has no own property "sort" +includes: [testBigIntTypedArray.js] +features: [BigInt, TypedArray] +---*/ + +testWithBigIntTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("sort"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/sort/browser.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/sort/browser.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/sort/inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/sort/inherited.js new file mode 100644 index 0000000000..e42774b2be --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/sort/inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.sort +description: > + _TypedArray_.prototype has no own property "sort" +includes: [testTypedArray.js] +features: [TypedArray] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("sort"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/sort/shell.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/sort/shell.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/subarray/bigint-inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/subarray/bigint-inherited.js new file mode 100644 index 0000000000..da10e7e7fa --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/subarray/bigint-inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.subarray +description: > + _TypedArray_.prototype has no own property "subarray" +includes: [testBigIntTypedArray.js] +features: [BigInt, TypedArray] +---*/ + +testWithBigIntTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("subarray"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/subarray/browser.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/subarray/browser.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/subarray/inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/subarray/inherited.js new file mode 100644 index 0000000000..63609b2124 --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/subarray/inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.subarray +description: > + _TypedArray_.prototype has no own property "subarray" +includes: [testTypedArray.js] +features: [TypedArray] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("subarray"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/subarray/shell.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/subarray/shell.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/toLocaleString/bigint-inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/toLocaleString/bigint-inherited.js new file mode 100644 index 0000000000..26a0962969 --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/toLocaleString/bigint-inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.tolocalestring +description: > + _TypedArray_.prototype has no own property "toLocaleString" +includes: [testBigIntTypedArray.js] +features: [BigInt, TypedArray] +---*/ + +testWithBigIntTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("toLocaleString"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/toLocaleString/browser.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/toLocaleString/browser.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/toLocaleString/inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/toLocaleString/inherited.js new file mode 100644 index 0000000000..bd2d3caaf5 --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/toLocaleString/inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.tolocalestring +description: > + _TypedArray_.prototype has no own property "toLocaleString" +includes: [testTypedArray.js] +features: [TypedArray] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("toLocaleString"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/toLocaleString/shell.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/toLocaleString/shell.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/toString/bigint-inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/toString/bigint-inherited.js new file mode 100644 index 0000000000..a6c505e814 --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/toString/bigint-inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.tostring +description: > + _TypedArray_.prototype has no own property "toString" +includes: [testBigIntTypedArray.js] +features: [BigInt, TypedArray] +---*/ + +testWithBigIntTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("toString"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/toString/browser.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/toString/browser.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/toString/inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/toString/inherited.js new file mode 100644 index 0000000000..b79a9b7b20 --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/toString/inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.tostring +description: > + _TypedArray_.prototype has no own property "toString" +includes: [testTypedArray.js] +features: [TypedArray] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("toString"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/toString/shell.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/toString/shell.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/values/bigint-inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/values/bigint-inherited.js new file mode 100644 index 0000000000..38750dc92e --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/values/bigint-inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.values +description: > + _TypedArray_.prototype has no own property "values" +includes: [testBigIntTypedArray.js] +features: [BigInt, TypedArray] +---*/ + +testWithBigIntTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("values"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/values/browser.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/values/browser.js new file mode 100644 index 0000000000..e69de29bb2 diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/values/inherited.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/values/inherited.js new file mode 100644 index 0000000000..0283231b6b --- /dev/null +++ b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/values/inherited.js @@ -0,0 +1,15 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-%typedarray%.prototype.values +description: > + _TypedArray_.prototype has no own property "values" +includes: [testTypedArray.js] +features: [TypedArray] +---*/ + +testWithTypedArrayConstructors(function(TA) { + assert.sameValue(TA.prototype.hasOwnProperty("values"), false); +}); + +reportCompare(0, 0); diff --git a/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/values/shell.js b/js/src/tests/test262/built-ins/TypedArrayConstructors/prototype/values/shell.js new file mode 100644 index 0000000000..e69de29bb2 -- cgit v1.2.3