diff --git a/harness/testBigIntTypedArray.js b/harness/testBigIntTypedArray.js index f071e5515b02f281b78cadaf951d71c7b9626027..7b5d14e16bbf83d872e26e98dc177b1963b04240 100644 --- a/harness/testBigIntTypedArray.js +++ b/harness/testBigIntTypedArray.js @@ -8,13 +8,12 @@ description: | /** * The %TypedArray% intrinsic constructor function. */ -var TypedArray = Object.getPrototypeOf(Int8Array); +var TypedArray = Object.getPrototypeOf(BigInt64Array); /** * 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) { /** diff --git a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/copyWithin/BigInt/invoked-as-func.js deleted file mode 100644 index 7559361e19f249bc663bc2acd4a285b642624283..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/invoked-as-func.js +++ /dev/null @@ -1,29 +0,0 @@ -// 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: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.5 %TypedArray%.prototype.copyWithin (target, start [, end ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var copyWithin = TypedArray.prototype.copyWithin; - -assert.sameValue(typeof copyWithin, 'function'); - -assert.throws(TypeError, function() { - copyWithin(); -}); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/copyWithin/BigInt/invoked-as-method.js deleted file mode 100644 index 5a40d48c99f599c5be9acc7f3a1a212946d9c439..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/invoked-as-method.js +++ /dev/null @@ -1,29 +0,0 @@ -// 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: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.5 %TypedArray%.prototype.copyWithin (target, start [, end ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.copyWithin, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.copyWithin(); -}); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/length.js b/test/built-ins/TypedArray/prototype/copyWithin/BigInt/length.js deleted file mode 100644 index 7c635e69c9a285c34c634d81e7b5df990881dcce..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.copywithin -description: > - %TypedArray%.prototype.copyWithin.length is 2. -info: | - %TypedArray%.prototype.copyWithin (target, start [, end ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.copyWithin.length, 2); - -verifyNotEnumerable(TypedArray.prototype.copyWithin, "length"); -verifyNotWritable(TypedArray.prototype.copyWithin, "length"); -verifyConfigurable(TypedArray.prototype.copyWithin, "length"); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/name.js b/test/built-ins/TypedArray/prototype/copyWithin/BigInt/name.js deleted file mode 100644 index 902c628c47364f979698fdf94c15611a23e49f28..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.copywithin -description: > - %TypedArray%.prototype.copyWithin.name is "copyWithin". -info: | - %TypedArray%.prototype.copyWithin (target, start [, end ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.copyWithin.name, "copyWithin"); - -verifyNotEnumerable(TypedArray.prototype.copyWithin, "name"); -verifyNotWritable(TypedArray.prototype.copyWithin, "name"); -verifyConfigurable(TypedArray.prototype.copyWithin, "name"); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/copyWithin/BigInt/prop-desc.js deleted file mode 100644 index d75e27ac0a199a1671e8c937a2c9a9993696755c..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// 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: > - "copyWithin" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'copyWithin'); -verifyWritable(TypedArrayPrototype, 'copyWithin'); -verifyConfigurable(TypedArrayPrototype, 'copyWithin'); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/copyWithin/BigInt/this-is-not-object.js deleted file mode 100644 index 3c1b7c435887a38362f6218da200881af8d56dc6..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/this-is-not-object.js +++ /dev/null @@ -1,50 +0,0 @@ -// 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: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.5 %TypedArray%.prototype.copyWithin (target, start [ , end ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var copyWithin = TypedArray.prototype.copyWithin; - -assert.throws(TypeError, function() { - copyWithin.call(undefined, 0, 0); -}, "this is undefined"); - -assert.throws(TypeError, function() { - copyWithin.call(null, 0, 0); -}, "this is null"); - -assert.throws(TypeError, function() { - copyWithin.call(42, 0, 0); -}, "this is 42"); - -assert.throws(TypeError, function() { - copyWithin.call("1", 0, 0); -}, "this is a string"); - -assert.throws(TypeError, function() { - copyWithin.call(true, 0, 0); -}, "this is true"); - -assert.throws(TypeError, function() { - copyWithin.call(false, 0, 0); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - copyWithin.call(s, 0, 0); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/copyWithin/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index 95d9bfd12074d5f5d8228c06f343f54840f4182a..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/copyWithin/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,42 +0,0 @@ -// 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: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.5 %TypedArray%.prototype.copyWithin (target, start [ , end ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var copyWithin = TypedArray.prototype.copyWithin; - -assert.throws(TypeError, function() { - copyWithin.call({}, 0, 0); -}, "this is an Object"); - -assert.throws(TypeError, function() { - copyWithin.call([], 0, 0); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - copyWithin.call(ab, 0, 0); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - copyWithin.call(dv, 0, 0); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/every/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/every/BigInt/invoked-as-func.js deleted file mode 100644 index 83d64511ca7db2348d59de429b67de919f7173dd..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/every/BigInt/invoked-as-func.js +++ /dev/null @@ -1,29 +0,0 @@ -// 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: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.7 %TypedArray%.prototype.every ( callbackfn [ , thisArg ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var every = TypedArray.prototype.every; - -assert.sameValue(typeof every, 'function'); - -assert.throws(TypeError, function() { - every(); -}); diff --git a/test/built-ins/TypedArray/prototype/every/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/every/BigInt/invoked-as-method.js deleted file mode 100644 index 2b99d4c68275d7a86e0160654209b6011f3cf49d..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/every/BigInt/invoked-as-method.js +++ /dev/null @@ -1,29 +0,0 @@ -// 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: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.7 %TypedArray%.prototype.every ( callbackfn [ , thisArg ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.every, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.every(); -}); diff --git a/test/built-ins/TypedArray/prototype/every/BigInt/length.js b/test/built-ins/TypedArray/prototype/every/BigInt/length.js deleted file mode 100644 index cbe40ceaae711d5d5336320850543ce1cc2fb341..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/every/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.every -description: > - %TypedArray%.prototype.every.length is 1. -info: | - %TypedArray%.prototype.every ( callbackfn [ , thisArg ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.every.length, 1); - -verifyNotEnumerable(TypedArray.prototype.every, "length"); -verifyNotWritable(TypedArray.prototype.every, "length"); -verifyConfigurable(TypedArray.prototype.every, "length"); diff --git a/test/built-ins/TypedArray/prototype/every/BigInt/name.js b/test/built-ins/TypedArray/prototype/every/BigInt/name.js deleted file mode 100644 index c7fb7d7642a9718c50e3051fe00bc5c9c2ea0bed..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/every/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.every -description: > - %TypedArray%.prototype.every.name is "every". -info: | - %TypedArray%.prototype.every ( callbackfn [ , thisArg ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.every.name, "every"); - -verifyNotEnumerable(TypedArray.prototype.every, "name"); -verifyNotWritable(TypedArray.prototype.every, "name"); -verifyConfigurable(TypedArray.prototype.every, "name"); diff --git a/test/built-ins/TypedArray/prototype/every/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/every/BigInt/prop-desc.js deleted file mode 100644 index d1c570ca10e7f6cc97abf753cf09aab37e07bce1..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/every/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// 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: > - "every" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'every'); -verifyWritable(TypedArrayPrototype, 'every'); -verifyConfigurable(TypedArrayPrototype, 'every'); diff --git a/test/built-ins/TypedArray/prototype/every/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/every/BigInt/this-is-not-object.js deleted file mode 100644 index af9557ea02a86c828beba64cbfcc5d80c893b36a..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/every/BigInt/this-is-not-object.js +++ /dev/null @@ -1,51 +0,0 @@ -// 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: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.7 %TypedArray%.prototype.every ( callbackfn [ , thisArg ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var every = TypedArray.prototype.every; -var callbackfn = function() {}; - -assert.throws(TypeError, function() { - every.call(undefined, callbackfn); -}, "this is undefined"); - -assert.throws(TypeError, function() { - every.call(null, callbackfn); -}, "this is null"); - -assert.throws(TypeError, function() { - every.call(42, callbackfn); -}, "this is 42"); - -assert.throws(TypeError, function() { - every.call("1", callbackfn); -}, "this is a string"); - -assert.throws(TypeError, function() { - every.call(true, callbackfn); -}, "this is true"); - -assert.throws(TypeError, function() { - every.call(false, callbackfn); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - every.call(s, callbackfn); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/every/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/every/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index 21ff576b5a8852090106ce82c29dc02294864360..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/every/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,43 +0,0 @@ -// 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: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.7 %TypedArray%.prototype.every ( callbackfn [ , thisArg ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var every = TypedArray.prototype.every; -var callbackfn = function() {}; - -assert.throws(TypeError, function() { - every.call({}, callbackfn); -}, "this is an Object"); - -assert.throws(TypeError, function() { - every.call([], callbackfn); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - every.call(ab, callbackfn); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - every.call(dv, callbackfn); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/fill/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/fill/BigInt/invoked-as-func.js deleted file mode 100644 index f7f0936d1232afced89093b711600006ddf646aa..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/fill/BigInt/invoked-as-func.js +++ /dev/null @@ -1,29 +0,0 @@ -// 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: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.8 %TypedArray%.prototype.fill (value [ , start [ , end ] ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var fill = TypedArray.prototype.fill; - -assert.sameValue(typeof fill, 'function'); - -assert.throws(TypeError, function() { - fill(); -}); diff --git a/test/built-ins/TypedArray/prototype/fill/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/fill/BigInt/invoked-as-method.js deleted file mode 100644 index 897c2164b2bb6a113b795c3551ff617e5f980a78..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/fill/BigInt/invoked-as-method.js +++ /dev/null @@ -1,29 +0,0 @@ -// 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: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.8 %TypedArray%.prototype.fill (value [ , start [ , end ] ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.fill, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.fill(); -}); diff --git a/test/built-ins/TypedArray/prototype/fill/BigInt/length.js b/test/built-ins/TypedArray/prototype/fill/BigInt/length.js deleted file mode 100644 index 6bf1feff53a6b9d4d1e65b7e2046a071ce458e8c..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/fill/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.fill -description: > - %TypedArray%.prototype.fill.length is 1. -info: | - %TypedArray%.prototype.fill (value [ , start [ , end ] ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.fill.length, 1); - -verifyNotEnumerable(TypedArray.prototype.fill, "length"); -verifyNotWritable(TypedArray.prototype.fill, "length"); -verifyConfigurable(TypedArray.prototype.fill, "length"); diff --git a/test/built-ins/TypedArray/prototype/fill/BigInt/name.js b/test/built-ins/TypedArray/prototype/fill/BigInt/name.js deleted file mode 100644 index 82e72227a6c29c9ec60c0673c859fb1d8f0ffa2d..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/fill/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.fill -description: > - %TypedArray%.prototype.fill.name is "fill". -info: | - %TypedArray%.prototype.fill (value [ , start [ , end ] ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.fill.name, "fill"); - -verifyNotEnumerable(TypedArray.prototype.fill, "name"); -verifyNotWritable(TypedArray.prototype.fill, "name"); -verifyConfigurable(TypedArray.prototype.fill, "name"); diff --git a/test/built-ins/TypedArray/prototype/fill/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/fill/BigInt/prop-desc.js deleted file mode 100644 index 752b7a282ee8030d8217ea75156bc566bfc5b349..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/fill/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// 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: > - "fill" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'fill'); -verifyWritable(TypedArrayPrototype, 'fill'); -verifyConfigurable(TypedArrayPrototype, 'fill'); diff --git a/test/built-ins/TypedArray/prototype/fill/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/fill/BigInt/this-is-not-object.js deleted file mode 100644 index 5846bbcae4ecafc69c4a3c52adb5d04d9397b0bb..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/fill/BigInt/this-is-not-object.js +++ /dev/null @@ -1,50 +0,0 @@ -// 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: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.8 %TypedArray%.prototype.fill (value [ , start [ , end ] ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var fill = TypedArray.prototype.fill; - -assert.throws(TypeError, function() { - fill.call(undefined, 0); -}, "this is undefined"); - -assert.throws(TypeError, function() { - fill.call(null, 0); -}, "this is null"); - -assert.throws(TypeError, function() { - fill.call(42, 0); -}, "this is 42"); - -assert.throws(TypeError, function() { - fill.call("1", 0); -}, "this is a string"); - -assert.throws(TypeError, function() { - fill.call(true, 0); -}, "this is true"); - -assert.throws(TypeError, function() { - fill.call(false, 0); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - fill.call(s, 0); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/fill/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/fill/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index 8cb01210801c6b55fb8781177945cfb2e88bf27a..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/fill/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,42 +0,0 @@ -// 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: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.8 %TypedArray%.prototype.fill (value [ , start [ , end ] ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var fill = TypedArray.prototype.fill; - -assert.throws(TypeError, function() { - fill.call({}, 0); -}, "this is an Object"); - -assert.throws(TypeError, function() { - fill.call([], 0); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - fill.call(ab, 0); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - fill.call(dv, 0); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/filter/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/filter/BigInt/invoked-as-func.js deleted file mode 100644 index 92e9758b5a64ba9166fce360ed0fa8834b232318..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/filter/BigInt/invoked-as-func.js +++ /dev/null @@ -1,30 +0,0 @@ -// 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: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.9 %TypedArray%.prototype.filter ( callbackfn [ , thisArg ] ) - - 1. Let O be the this value. - 2. Let valid be ValidateTypedArray(O). - 3. ReturnIfAbrupt(valid). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var filter = TypedArray.prototype.filter; - -assert.sameValue(typeof filter, 'function'); - -assert.throws(TypeError, function() { - filter(); -}); diff --git a/test/built-ins/TypedArray/prototype/filter/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/filter/BigInt/invoked-as-method.js deleted file mode 100644 index 18c818b65e3e5ab688813d65a0532ea73e566a3e..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/filter/BigInt/invoked-as-method.js +++ /dev/null @@ -1,30 +0,0 @@ -// 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: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.9 %TypedArray%.prototype.filter ( callbackfn [ , thisArg ] ) - - 1. Let O be the this value. - 2. Let valid be ValidateTypedArray(O). - 3. ReturnIfAbrupt(valid). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.filter, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.filter(); -}); diff --git a/test/built-ins/TypedArray/prototype/filter/BigInt/length.js b/test/built-ins/TypedArray/prototype/filter/BigInt/length.js deleted file mode 100644 index 3c0af26acc0b6de6449f4598faafb621739e4e07..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/filter/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.filter -description: > - %TypedArray%.prototype.filter.length is 1. -info: | - %TypedArray%.prototype.filter ( callbackfn [ , thisArg ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.filter.length, 1); - -verifyNotEnumerable(TypedArray.prototype.filter, "length"); -verifyNotWritable(TypedArray.prototype.filter, "length"); -verifyConfigurable(TypedArray.prototype.filter, "length"); diff --git a/test/built-ins/TypedArray/prototype/filter/BigInt/name.js b/test/built-ins/TypedArray/prototype/filter/BigInt/name.js deleted file mode 100644 index 4eb3d76b226d9311807725f3c0ff2de712a5217f..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/filter/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.filter -description: > - %TypedArray%.prototype.filter.name is "filter". -info: | - %TypedArray%.prototype.filter ( callbackfn [ , thisArg ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.filter.name, "filter"); - -verifyNotEnumerable(TypedArray.prototype.filter, "name"); -verifyNotWritable(TypedArray.prototype.filter, "name"); -verifyConfigurable(TypedArray.prototype.filter, "name"); diff --git a/test/built-ins/TypedArray/prototype/filter/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/filter/BigInt/prop-desc.js deleted file mode 100644 index 37c277bcfb3b64635e2ecd9564aabe33f921586a..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/filter/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// 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: > - "filter" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'filter'); -verifyWritable(TypedArrayPrototype, 'filter'); -verifyConfigurable(TypedArrayPrototype, 'filter'); diff --git a/test/built-ins/TypedArray/prototype/filter/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/filter/BigInt/this-is-not-object.js deleted file mode 100644 index 0a8a31a276164ecc963539b0aaa182cdb9caa92c..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/filter/BigInt/this-is-not-object.js +++ /dev/null @@ -1,53 +0,0 @@ -// 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: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.9 %TypedArray%.prototype.filter ( callbackfn [ , thisArg ] ) - - The following steps are taken: - - 1. Let O be the this value. - 2. Perform ? ValidateTypedArray(O). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var filter = TypedArray.prototype.filter; -var callbackfn = function() {}; - -assert.throws(TypeError, function() { - filter.call(undefined, callbackfn); -}, "this is undefined"); - -assert.throws(TypeError, function() { - filter.call(null, callbackfn); -}, "this is null"); - -assert.throws(TypeError, function() { - filter.call(42, callbackfn); -}, "this is 42"); - -assert.throws(TypeError, function() { - filter.call("1", callbackfn); -}, "this is a string"); - -assert.throws(TypeError, function() { - filter.call(true, callbackfn); -}, "this is true"); - -assert.throws(TypeError, function() { - filter.call(false, callbackfn); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - filter.call(s, callbackfn); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/filter/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/filter/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index 4bb60e605e18df132f48ca72743d376de4682d54..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/filter/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,45 +0,0 @@ -// 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: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.9 %TypedArray%.prototype.filter ( callbackfn [ , thisArg ] ) - - The following steps are taken: - - 1. Let O be the this value. - 2. Perform ? ValidateTypedArray(O). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var filter = TypedArray.prototype.filter; -var callbackfn = function() {}; - -assert.throws(TypeError, function() { - filter.call({}, callbackfn); -}, "this is an Object"); - -assert.throws(TypeError, function() { - filter.call([], callbackfn); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - filter.call(ab, callbackfn); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - filter.call(dv, callbackfn); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/find/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/find/BigInt/invoked-as-func.js deleted file mode 100644 index 088c3398aaa865569f330e8300c3a05210234ce9..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/find/BigInt/invoked-as-func.js +++ /dev/null @@ -1,29 +0,0 @@ -// 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: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.10 %TypedArray%.prototype.find (predicate [ , thisArg ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var find = TypedArray.prototype.find; - -assert.sameValue(typeof find, 'function'); - -assert.throws(TypeError, function() { - find(); -}); diff --git a/test/built-ins/TypedArray/prototype/find/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/find/BigInt/invoked-as-method.js deleted file mode 100644 index 7bb3bb7419677641d495a776b68ca781f5361d49..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/find/BigInt/invoked-as-method.js +++ /dev/null @@ -1,29 +0,0 @@ -// 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: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.10 %TypedArray%.prototype.find (predicate [ , thisArg ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.find, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.find(); -}); diff --git a/test/built-ins/TypedArray/prototype/find/BigInt/length.js b/test/built-ins/TypedArray/prototype/find/BigInt/length.js deleted file mode 100644 index 9c8cdcaccbd8af00478474b6e62369362e3cdfa0..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/find/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.find -description: > - %TypedArray%.prototype.find.length is 1. -info: | - %TypedArray%.prototype.find (predicate [ , thisArg ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.find.length, 1); - -verifyNotEnumerable(TypedArray.prototype.find, "length"); -verifyNotWritable(TypedArray.prototype.find, "length"); -verifyConfigurable(TypedArray.prototype.find, "length"); diff --git a/test/built-ins/TypedArray/prototype/find/BigInt/name.js b/test/built-ins/TypedArray/prototype/find/BigInt/name.js deleted file mode 100644 index c84053e8ecd6196dbe25d6e4018261c4eba43039..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/find/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.find -description: > - %TypedArray%.prototype.find.name is "find". -info: | - %TypedArray%.prototype.find (predicate [ , thisArg ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.find.name, "find"); - -verifyNotEnumerable(TypedArray.prototype.find, "name"); -verifyNotWritable(TypedArray.prototype.find, "name"); -verifyConfigurable(TypedArray.prototype.find, "name"); diff --git a/test/built-ins/TypedArray/prototype/find/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/find/BigInt/prop-desc.js deleted file mode 100644 index e2c5e7e9d2dfcc6682d74ba2a52f7ff0443390c9..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/find/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// 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: > - "find" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'find'); -verifyWritable(TypedArrayPrototype, 'find'); -verifyConfigurable(TypedArrayPrototype, 'find'); diff --git a/test/built-ins/TypedArray/prototype/find/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/find/BigInt/this-is-not-object.js deleted file mode 100644 index 14930635201167b4ec6c62894f86c431c77dc4f0..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/find/BigInt/this-is-not-object.js +++ /dev/null @@ -1,51 +0,0 @@ -// 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: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.10 %TypedArray%.prototype.find (predicate [ , thisArg ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var find = TypedArray.prototype.find; -var predicate = function() {}; - -assert.throws(TypeError, function() { - find.call(undefined, predicate); -}, "this is undefined"); - -assert.throws(TypeError, function() { - find.call(null, predicate); -}, "this is null"); - -assert.throws(TypeError, function() { - find.call(42, predicate); -}, "this is 42"); - -assert.throws(TypeError, function() { - find.call("1", predicate); -}, "this is a string"); - -assert.throws(TypeError, function() { - find.call(true, predicate); -}, "this is true"); - -assert.throws(TypeError, function() { - find.call(false, predicate); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - find.call(s, predicate); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/find/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/find/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index 957be1152416d3e919b0d6353a78df8233d12194..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/find/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,43 +0,0 @@ -// 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: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.10 %TypedArray%.prototype.find (predicate [ , thisArg ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var find = TypedArray.prototype.find; -var predicate = function() {}; - -assert.throws(TypeError, function() { - find.call({}, predicate); -}, "this is an Object"); - -assert.throws(TypeError, function() { - find.call([], predicate); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - find.call(ab, predicate); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - find.call(dv, predicate); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/findIndex/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/findIndex/BigInt/invoked-as-func.js deleted file mode 100644 index f305556a174a956ca6e5ac8191a7eb5ab83087d1..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/findIndex/BigInt/invoked-as-func.js +++ /dev/null @@ -1,29 +0,0 @@ -// 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: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.11 %TypedArray%.prototype.findIndex ( predicate [ , thisArg ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var findIndex = TypedArray.prototype.findIndex; - -assert.sameValue(typeof findIndex, 'function'); - -assert.throws(TypeError, function() { - findIndex(); -}); diff --git a/test/built-ins/TypedArray/prototype/findIndex/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/findIndex/BigInt/invoked-as-method.js deleted file mode 100644 index 1871afdabdfecdee689a09e51ebce7bf13e40d5a..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/findIndex/BigInt/invoked-as-method.js +++ /dev/null @@ -1,29 +0,0 @@ -// 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: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.11 %TypedArray%.prototype.findIndex ( predicate [ , thisArg ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.findIndex, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.findIndex(); -}); diff --git a/test/built-ins/TypedArray/prototype/findIndex/BigInt/length.js b/test/built-ins/TypedArray/prototype/findIndex/BigInt/length.js deleted file mode 100644 index 64d37958e5b27fb3c6e04b3ac68671f980fff6ff..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/findIndex/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.findindex -description: > - %TypedArray%.prototype.findIndex.length is 1. -info: | - %TypedArray%.prototype.findIndex (predicate [ , thisArg ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.findIndex.length, 1); - -verifyNotEnumerable(TypedArray.prototype.findIndex, "length"); -verifyNotWritable(TypedArray.prototype.findIndex, "length"); -verifyConfigurable(TypedArray.prototype.findIndex, "length"); diff --git a/test/built-ins/TypedArray/prototype/findIndex/BigInt/name.js b/test/built-ins/TypedArray/prototype/findIndex/BigInt/name.js deleted file mode 100644 index 84a9724a2b8bfe1a11ca64af7153854603cf2afe..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/findIndex/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.findindex -description: > - %TypedArray%.prototype.findIndex.name is "findIndex". -info: | - %TypedArray%.prototype.findIndex (predicate [ , thisArg ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.findIndex.name, "findIndex"); - -verifyNotEnumerable(TypedArray.prototype.findIndex, "name"); -verifyNotWritable(TypedArray.prototype.findIndex, "name"); -verifyConfigurable(TypedArray.prototype.findIndex, "name"); diff --git a/test/built-ins/TypedArray/prototype/findIndex/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/findIndex/BigInt/prop-desc.js deleted file mode 100644 index 9913a867ecdbdadd34b3c4d850c1bd92609ae95d..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/findIndex/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// 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: > - "findIndex" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'findIndex'); -verifyWritable(TypedArrayPrototype, 'findIndex'); -verifyConfigurable(TypedArrayPrototype, 'findIndex'); diff --git a/test/built-ins/TypedArray/prototype/findIndex/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/findIndex/BigInt/this-is-not-object.js deleted file mode 100644 index fedede8b0847a4f5df46ae1487b2f80f66182813..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/findIndex/BigInt/this-is-not-object.js +++ /dev/null @@ -1,51 +0,0 @@ -// 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: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.11 %TypedArray%.prototype.findIndex ( predicate [ , thisArg ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var findIndex = TypedArray.prototype.findIndex; -var predicate = function() {}; - -assert.throws(TypeError, function() { - findIndex.call(undefined, predicate); -}, "this is undefined"); - -assert.throws(TypeError, function() { - findIndex.call(null, predicate); -}, "this is null"); - -assert.throws(TypeError, function() { - findIndex.call(42, predicate); -}, "this is 42"); - -assert.throws(TypeError, function() { - findIndex.call("1", predicate); -}, "this is a string"); - -assert.throws(TypeError, function() { - findIndex.call(true, predicate); -}, "this is true"); - -assert.throws(TypeError, function() { - findIndex.call(false, predicate); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - findIndex.call(s, predicate); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/findIndex/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/findIndex/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index 0c1bbab00dd25f349b71b316212c15d722371acb..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/findIndex/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,43 +0,0 @@ -// 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: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.11 %TypedArray%.prototype.findIndex ( predicate [ , thisArg ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var findIndex = TypedArray.prototype.findIndex; -var predicate = function() {}; - -assert.throws(TypeError, function() { - findIndex.call({}, predicate); -}, "this is an Object"); - -assert.throws(TypeError, function() { - findIndex.call([], predicate); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - findIndex.call(ab, predicate); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - findIndex.call(dv, predicate); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/forEach/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/forEach/BigInt/invoked-as-func.js deleted file mode 100644 index d4eb50b88049f52da7b8c7dd99c7bede37ae2f76..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/forEach/BigInt/invoked-as-func.js +++ /dev/null @@ -1,29 +0,0 @@ -// 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: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.12 %TypedArray%.prototype.forEach ( callbackfn [ , thisArg ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var forEach = TypedArray.prototype.forEach; - -assert.sameValue(typeof forEach, 'function'); - -assert.throws(TypeError, function() { - forEach(); -}); diff --git a/test/built-ins/TypedArray/prototype/forEach/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/forEach/BigInt/invoked-as-method.js deleted file mode 100644 index f455052759141c81522abdac927a544a26e65c30..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/forEach/BigInt/invoked-as-method.js +++ /dev/null @@ -1,29 +0,0 @@ -// 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: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.12 %TypedArray%.prototype.forEach ( callbackfn [ , thisArg ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.forEach, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.forEach(); -}); diff --git a/test/built-ins/TypedArray/prototype/forEach/BigInt/length.js b/test/built-ins/TypedArray/prototype/forEach/BigInt/length.js deleted file mode 100644 index f8f9624a9ebcce6381dc15e18edba478dd82111f..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/forEach/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.foreach -description: > - %TypedArray%.prototype.forEach.length is 1. -info: | - %TypedArray%.prototype.forEach (callbackfn [ , thisArg ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.forEach.length, 1); - -verifyNotEnumerable(TypedArray.prototype.forEach, "length"); -verifyNotWritable(TypedArray.prototype.forEach, "length"); -verifyConfigurable(TypedArray.prototype.forEach, "length"); diff --git a/test/built-ins/TypedArray/prototype/forEach/BigInt/name.js b/test/built-ins/TypedArray/prototype/forEach/BigInt/name.js deleted file mode 100644 index 36c9ffde4c5efc3d6605bf3a33b149462a3383b1..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/forEach/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.foreach -description: > - %TypedArray%.prototype.forEach.name is "forEach". -info: | - %TypedArray%.prototype.forEach (callbackfn [ , thisArg ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.forEach.name, "forEach"); - -verifyNotEnumerable(TypedArray.prototype.forEach, "name"); -verifyNotWritable(TypedArray.prototype.forEach, "name"); -verifyConfigurable(TypedArray.prototype.forEach, "name"); diff --git a/test/built-ins/TypedArray/prototype/forEach/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/forEach/BigInt/prop-desc.js deleted file mode 100644 index b095a89f2a8c8f82e54495de0188ab6b84f0eb88..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/forEach/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// 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: > - "forEach" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'forEach'); -verifyWritable(TypedArrayPrototype, 'forEach'); -verifyConfigurable(TypedArrayPrototype, 'forEach'); diff --git a/test/built-ins/TypedArray/prototype/forEach/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/forEach/BigInt/this-is-not-object.js deleted file mode 100644 index 6317c05d5ddaef78724d85e3698a1cfa7967993f..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/forEach/BigInt/this-is-not-object.js +++ /dev/null @@ -1,51 +0,0 @@ -// 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: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.12 %TypedArray%.prototype.forEach ( callbackfn [ , thisArg ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var forEach = TypedArray.prototype.forEach; -var callbackfn = function() {}; - -assert.throws(TypeError, function() { - forEach.call(undefined, callbackfn); -}, "this is undefined"); - -assert.throws(TypeError, function() { - forEach.call(null, callbackfn); -}, "this is null"); - -assert.throws(TypeError, function() { - forEach.call(42, callbackfn); -}, "this is 42"); - -assert.throws(TypeError, function() { - forEach.call("1", callbackfn); -}, "this is a string"); - -assert.throws(TypeError, function() { - forEach.call(true, callbackfn); -}, "this is true"); - -assert.throws(TypeError, function() { - forEach.call(false, callbackfn); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - forEach.call(s, callbackfn); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/forEach/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/forEach/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index 33db208c960fb3a85ef83fa6764146c3ec064b05..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/forEach/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,43 +0,0 @@ -// 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: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.12 %TypedArray%.prototype.forEach ( callbackfn [ , thisArg ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var forEach = TypedArray.prototype.forEach; -var callbackfn = function() {}; - -assert.throws(TypeError, function() { - forEach.call({}, callbackfn); -}, "this is an Object"); - -assert.throws(TypeError, function() { - forEach.call([], callbackfn); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - forEach.call(ab, callbackfn); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - forEach.call(dv, callbackfn); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/includes/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/includes/BigInt/invoked-as-func.js deleted file mode 100644 index cb8069bc371cdc7127ae922c2cdadea0eeb8e479..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/includes/BigInt/invoked-as-func.js +++ /dev/null @@ -1,29 +0,0 @@ -// 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.includes -description: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.14 %TypedArray%.prototype.includes ( searchElement [ , fromIndex ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var includes = TypedArray.prototype.includes; - -assert.sameValue(typeof includes, "function"); - -assert.throws(TypeError, function() { - includes(); -}); diff --git a/test/built-ins/TypedArray/prototype/includes/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/includes/BigInt/invoked-as-method.js deleted file mode 100644 index 78f7428a106073117173ac59038fcf37d6ff290a..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/includes/BigInt/invoked-as-method.js +++ /dev/null @@ -1,29 +0,0 @@ -// 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.includes -description: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.14 %TypedArray%.prototype.includes ( searchElement [ , fromIndex ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.includes, "function"); - -assert.throws(TypeError, function() { - TypedArrayPrototype.includes(); -}); diff --git a/test/built-ins/TypedArray/prototype/includes/BigInt/length.js b/test/built-ins/TypedArray/prototype/includes/BigInt/length.js deleted file mode 100644 index f438ccd6f24cd08a9253fc1d75b99ea42174569f..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/includes/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// 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.includes -description: > - %TypedArray%.prototype.includes.length is 1. -info: | - %TypedArray%.prototype.includes ( searchElement [ , fromIndex ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.includes.length, 1); - -verifyNotEnumerable(TypedArray.prototype.includes, "length"); -verifyNotWritable(TypedArray.prototype.includes, "length"); -verifyConfigurable(TypedArray.prototype.includes, "length"); diff --git a/test/built-ins/TypedArray/prototype/includes/BigInt/name.js b/test/built-ins/TypedArray/prototype/includes/BigInt/name.js deleted file mode 100644 index 4d90c44c8574c438d8a5c02d0ccf87886d796d09..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/includes/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// 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.includes -description: > - %TypedArray%.prototype.includes.name is "includes". -info: | - %TypedArray%.prototype.includes (searchElement [ , fromIndex ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.includes.name, "includes"); - -verifyNotEnumerable(TypedArray.prototype.includes, "name"); -verifyNotWritable(TypedArray.prototype.includes, "name"); -verifyConfigurable(TypedArray.prototype.includes, "name"); diff --git a/test/built-ins/TypedArray/prototype/includes/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/includes/BigInt/prop-desc.js deleted file mode 100644 index fa4630d5172aafaaaf48b5399192ff59a60fe49e..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/includes/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// 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.includes -description: > - "includes" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, "includes"); -verifyWritable(TypedArrayPrototype, "includes"); -verifyConfigurable(TypedArrayPrototype, "includes"); diff --git a/test/built-ins/TypedArray/prototype/includes/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/includes/BigInt/this-is-not-object.js deleted file mode 100644 index 88a42bcdfac5522eabec2ff9a3e4c7998fd89272..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/includes/BigInt/this-is-not-object.js +++ /dev/null @@ -1,50 +0,0 @@ -// 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.includes -description: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.14 %TypedArray%.prototype.includes ( searchElement [ , fromIndex ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var includes = TypedArray.prototype.includes; - -assert.throws(TypeError, function() { - includes.call(undefined, 42); -}, "this is undefined"); - -assert.throws(TypeError, function() { - includes.call(null, 42); -}, "this is null"); - -assert.throws(TypeError, function() { - includes.call(42, 42); -}, "this is 42"); - -assert.throws(TypeError, function() { - includes.call("1", 42); -}, "this is a string"); - -assert.throws(TypeError, function() { - includes.call(true, 42); -}, "this is true"); - -assert.throws(TypeError, function() { - includes.call(false, 42); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - includes.call(s, 42); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/includes/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/includes/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index 713fe26dd395e3dc1444df6a38e69866805065af..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/includes/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,42 +0,0 @@ -// 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.includes -description: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.14 %TypedArray%.prototype.includes ( searchElement [ , fromIndex ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var includes = TypedArray.prototype.includes; - -assert.throws(TypeError, function() { - includes.call({}, 42); -}, "this is an Object"); - -assert.throws(TypeError, function() { - includes.call([], 42); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - includes.call(ab, 42); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - includes.call(dv, 42); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/indexOf/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/indexOf/BigInt/invoked-as-func.js deleted file mode 100644 index f2d8ff705c3e4d76ff5f32ec2b349abd03e8d190..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/indexOf/BigInt/invoked-as-func.js +++ /dev/null @@ -1,29 +0,0 @@ -// 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: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.13 %TypedArray%.prototype.indexOf (searchElement [ , fromIndex ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var indexOf = TypedArray.prototype.indexOf; - -assert.sameValue(typeof indexOf, 'function'); - -assert.throws(TypeError, function() { - indexOf(); -}); diff --git a/test/built-ins/TypedArray/prototype/indexOf/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/indexOf/BigInt/invoked-as-method.js deleted file mode 100644 index 80560a9ad9cff91ce80316d12b4d910d6fe2d99b..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/indexOf/BigInt/invoked-as-method.js +++ /dev/null @@ -1,29 +0,0 @@ -// 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: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.13 %TypedArray%.prototype.indexOf (searchElement [ , fromIndex ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.indexOf, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.indexOf(); -}); diff --git a/test/built-ins/TypedArray/prototype/indexOf/BigInt/length.js b/test/built-ins/TypedArray/prototype/indexOf/BigInt/length.js deleted file mode 100644 index d39f7dab996eae93a8c710ea65062bff257d4463..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/indexOf/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.indexof -description: > - %TypedArray%.prototype.indexOf.length is 1. -info: | - %TypedArray%.prototype.indexOf (searchElement [ , fromIndex ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.indexOf.length, 1); - -verifyNotEnumerable(TypedArray.prototype.indexOf, "length"); -verifyNotWritable(TypedArray.prototype.indexOf, "length"); -verifyConfigurable(TypedArray.prototype.indexOf, "length"); diff --git a/test/built-ins/TypedArray/prototype/indexOf/BigInt/name.js b/test/built-ins/TypedArray/prototype/indexOf/BigInt/name.js deleted file mode 100644 index 93ad66115d837fe21a04c2bd26526161507c0e6f..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/indexOf/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.indexof -description: > - %TypedArray%.prototype.indexOf.name is "indexOf". -info: | - %TypedArray%.prototype.indexOf (searchElement [ , fromIndex ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.indexOf.name, "indexOf"); - -verifyNotEnumerable(TypedArray.prototype.indexOf, "name"); -verifyNotWritable(TypedArray.prototype.indexOf, "name"); -verifyConfigurable(TypedArray.prototype.indexOf, "name"); diff --git a/test/built-ins/TypedArray/prototype/indexOf/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/indexOf/BigInt/prop-desc.js deleted file mode 100644 index aab14973732076453a74223fd23b6f9bda58b46d..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/indexOf/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// 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: > - "indexOf" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'indexOf'); -verifyWritable(TypedArrayPrototype, 'indexOf'); -verifyConfigurable(TypedArrayPrototype, 'indexOf'); diff --git a/test/built-ins/TypedArray/prototype/indexOf/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/indexOf/BigInt/this-is-not-object.js deleted file mode 100644 index c572d7dd35224d121a25e1bf438430eb394275c9..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/indexOf/BigInt/this-is-not-object.js +++ /dev/null @@ -1,50 +0,0 @@ -// 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: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.13 %TypedArray%.prototype.indexOf (searchElement [ , fromIndex ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var indexOf = TypedArray.prototype.indexOf; - -assert.throws(TypeError, function() { - indexOf.call(undefined, 42); -}, "this is undefined"); - -assert.throws(TypeError, function() { - indexOf.call(null, 42); -}, "this is null"); - -assert.throws(TypeError, function() { - indexOf.call(42, 42); -}, "this is 42"); - -assert.throws(TypeError, function() { - indexOf.call("1", 42); -}, "this is a string"); - -assert.throws(TypeError, function() { - indexOf.call(true, 42); -}, "this is true"); - -assert.throws(TypeError, function() { - indexOf.call(false, 42); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - indexOf.call(s, 42); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/indexOf/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/indexOf/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index 753fc3f7915f461a012c795043151a9e0940174b..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/indexOf/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,42 +0,0 @@ -// 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: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.13 %TypedArray%.prototype.indexOf (searchElement [ , fromIndex ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var indexOf = TypedArray.prototype.indexOf; - -assert.throws(TypeError, function() { - indexOf.call({}, 42); -}, "this is an Object"); - -assert.throws(TypeError, function() { - indexOf.call([], 42); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - indexOf.call(ab, 42); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - indexOf.call(dv, 42); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/join/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/join/BigInt/invoked-as-func.js deleted file mode 100644 index 1340f39314ead8fc38cae16b811e185f88d2bc64..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/join/BigInt/invoked-as-func.js +++ /dev/null @@ -1,29 +0,0 @@ -// 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: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.14 %TypedArray%.prototype.join ( separator ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var join = TypedArray.prototype.join; - -assert.sameValue(typeof join, 'function'); - -assert.throws(TypeError, function() { - join(); -}); diff --git a/test/built-ins/TypedArray/prototype/join/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/join/BigInt/invoked-as-method.js deleted file mode 100644 index 1121e42aacc6aa3eb957dc36d1b2ebc478662782..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/join/BigInt/invoked-as-method.js +++ /dev/null @@ -1,29 +0,0 @@ -// 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: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.14 %TypedArray%.prototype.join ( separator ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.join, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.join(); -}); diff --git a/test/built-ins/TypedArray/prototype/join/BigInt/length.js b/test/built-ins/TypedArray/prototype/join/BigInt/length.js deleted file mode 100644 index 6e1332323a459ee505aa880e081ff241559a5d80..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/join/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.join -description: > - %TypedArray%.prototype.join.length is 1. -info: | - %TypedArray%.prototype.join ( separator ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.join.length, 1); - -verifyNotEnumerable(TypedArray.prototype.join, "length"); -verifyNotWritable(TypedArray.prototype.join, "length"); -verifyConfigurable(TypedArray.prototype.join, "length"); diff --git a/test/built-ins/TypedArray/prototype/join/BigInt/name.js b/test/built-ins/TypedArray/prototype/join/BigInt/name.js deleted file mode 100644 index c7a1bfdfcb69d85860a24cb632c9586b296ebbcb..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/join/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.join -description: > - %TypedArray%.prototype.join.name is "join". -info: | - %TypedArray%.prototype.join ( separator ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.join.name, "join"); - -verifyNotEnumerable(TypedArray.prototype.join, "name"); -verifyNotWritable(TypedArray.prototype.join, "name"); -verifyConfigurable(TypedArray.prototype.join, "name"); diff --git a/test/built-ins/TypedArray/prototype/join/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/join/BigInt/prop-desc.js deleted file mode 100644 index f1ab91a062530b38b06d2086c0fda38785f49d8e..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/join/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// 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: > - "join" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'join'); -verifyWritable(TypedArrayPrototype, 'join'); -verifyConfigurable(TypedArrayPrototype, 'join'); diff --git a/test/built-ins/TypedArray/prototype/join/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/join/BigInt/this-is-not-object.js deleted file mode 100644 index 6f04ef810f498e12205c47fba5fc9af44904b9d0..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/join/BigInt/this-is-not-object.js +++ /dev/null @@ -1,50 +0,0 @@ -// 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: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.15 %TypedArray%.prototype.join ( separator ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var join = TypedArray.prototype.join; - -assert.throws(TypeError, function() { - join.call(undefined, ""); -}, "this is undefined"); - -assert.throws(TypeError, function() { - join.call(null, ""); -}, "this is null"); - -assert.throws(TypeError, function() { - join.call(42, ""); -}, "this is 42"); - -assert.throws(TypeError, function() { - join.call("1", ""); -}, "this is a string"); - -assert.throws(TypeError, function() { - join.call(true, ""); -}, "this is true"); - -assert.throws(TypeError, function() { - join.call(false, ""); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - join.call(s, ""); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/join/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/join/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index 582c99f3d174056a1fe1a2ab9c5db858714944c2..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/join/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,42 +0,0 @@ -// 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: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.15 %TypedArray%.prototype.join ( separator ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var join = TypedArray.prototype.join; - -assert.throws(TypeError, function() { - join.call({}, ""); -}, "this is an Object"); - -assert.throws(TypeError, function() { - join.call([], ""); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - join.call(ab, ""); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - join.call(dv, ""); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/keys/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/keys/BigInt/invoked-as-func.js deleted file mode 100644 index 2b04ed7f26254316ee68ff18bcb7b039727b82e5..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/keys/BigInt/invoked-as-func.js +++ /dev/null @@ -1,30 +0,0 @@ -// 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: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.15 %TypedArray%.prototype.keys ( ) - - 1. Let O be the this value. - 2. Let valid be ValidateTypedArray(O). - 3. ReturnIfAbrupt(valid). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var keys = TypedArray.prototype.keys; - -assert.sameValue(typeof keys, 'function'); - -assert.throws(TypeError, function() { - keys(); -}); diff --git a/test/built-ins/TypedArray/prototype/keys/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/keys/BigInt/invoked-as-method.js deleted file mode 100644 index 9e67e8b903a09c9e34d995e34876c2ebb8738c65..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/keys/BigInt/invoked-as-method.js +++ /dev/null @@ -1,30 +0,0 @@ -// 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: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.15 %TypedArray%.prototype.keys ( ) - - 1. Let O be the this value. - 2. Let valid be ValidateTypedArray(O). - 3. ReturnIfAbrupt(valid). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.keys, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.keys(); -}); diff --git a/test/built-ins/TypedArray/prototype/keys/BigInt/length.js b/test/built-ins/TypedArray/prototype/keys/BigInt/length.js deleted file mode 100644 index 0f4b206a530c14e95da41ea7248b3213d6f6d1f4..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/keys/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.keys -description: > - %TypedArray%.prototype.keys.length is 0. -info: | - %TypedArray%.prototype.keys ( ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.keys.length, 0); - -verifyNotEnumerable(TypedArray.prototype.keys, "length"); -verifyNotWritable(TypedArray.prototype.keys, "length"); -verifyConfigurable(TypedArray.prototype.keys, "length"); diff --git a/test/built-ins/TypedArray/prototype/keys/BigInt/name.js b/test/built-ins/TypedArray/prototype/keys/BigInt/name.js deleted file mode 100644 index da53744cad1c8e37617dd275e45908ae6fdebe83..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/keys/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.keys -description: > - %TypedArray%.prototype.keys.name is "keys". -info: | - %TypedArray%.prototype.keys ( ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.keys.name, "keys"); - -verifyNotEnumerable(TypedArray.prototype.keys, "name"); -verifyNotWritable(TypedArray.prototype.keys, "name"); -verifyConfigurable(TypedArray.prototype.keys, "name"); diff --git a/test/built-ins/TypedArray/prototype/keys/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/keys/BigInt/prop-desc.js deleted file mode 100644 index 74b5908dc6c2217c629c7e4a49bf35f18726a269..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/keys/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// 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: > - "keys" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'keys'); -verifyWritable(TypedArrayPrototype, 'keys'); -verifyConfigurable(TypedArrayPrototype, 'keys'); diff --git a/test/built-ins/TypedArray/prototype/keys/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/keys/BigInt/this-is-not-object.js deleted file mode 100644 index 7fd0c8f051dd3150f92b4838a143af011662917d..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/keys/BigInt/this-is-not-object.js +++ /dev/null @@ -1,52 +0,0 @@ -// 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: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.16 %TypedArray%.prototype.keys ( ) - - The following steps are taken: - - 1. Let O be the this value. - 2. Perform ? ValidateTypedArray(O). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var keys = TypedArray.prototype.keys; - -assert.throws(TypeError, function() { - keys.call(undefined); -}, "this is undefined"); - -assert.throws(TypeError, function() { - keys.call(null); -}, "this is null"); - -assert.throws(TypeError, function() { - keys.call(42); -}, "this is 42"); - -assert.throws(TypeError, function() { - keys.call("1"); -}, "this is a string"); - -assert.throws(TypeError, function() { - keys.call(true); -}, "this is true"); - -assert.throws(TypeError, function() { - keys.call(false); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - keys.call(s); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/keys/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/keys/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index 6978bfb3d6463046e2c090d8b55723d49e9ce6d3..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/keys/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,44 +0,0 @@ -// 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: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.16 %TypedArray%.prototype.keys ( ) - - The following steps are taken: - - 1. Let O be the this value. - 2. Perform ? ValidateTypedArray(O). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var keys = TypedArray.prototype.keys; - -assert.throws(TypeError, function() { - keys.call({}); -}, "this is an Object"); - -assert.throws(TypeError, function() { - keys.call([]); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - keys.call(ab); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - keys.call(dv); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/invoked-as-func.js deleted file mode 100644 index 3f982205062a0ce24e663f9b54bd715f7f1de0f4..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/invoked-as-func.js +++ /dev/null @@ -1,29 +0,0 @@ -// 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: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.16 %TypedArray%.prototype.lastIndexOf ( searchElement [ , fromIndex ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var lastIndexOf = TypedArray.prototype.lastIndexOf; - -assert.sameValue(typeof lastIndexOf, 'function'); - -assert.throws(TypeError, function() { - lastIndexOf(); -}); diff --git a/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/invoked-as-method.js deleted file mode 100644 index 3f034e4218395003cdcee04416ed45da2c5861c4..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/invoked-as-method.js +++ /dev/null @@ -1,29 +0,0 @@ -// 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: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.16 %TypedArray%.prototype.lastIndexOf ( searchElement [ , fromIndex ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.lastIndexOf, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.lastIndexOf(); -}); diff --git a/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/length.js b/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/length.js deleted file mode 100644 index dbc89d4736ef170c0885b679aeed017ae3d59cd9..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.lastindexof -description: > - %TypedArray%.prototype.lastIndexOf.length is 1. -info: | - %TypedArray%.prototype.lastIndexOf ( searchElement [ , fromIndex ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.lastIndexOf.length, 1); - -verifyNotEnumerable(TypedArray.prototype.lastIndexOf, "length"); -verifyNotWritable(TypedArray.prototype.lastIndexOf, "length"); -verifyConfigurable(TypedArray.prototype.lastIndexOf, "length"); diff --git a/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/name.js b/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/name.js deleted file mode 100644 index b4216d190317d478ba2c937a1ba54684a3457d5c..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.lastindexof -description: > - %TypedArray%.prototype.lastIndexOf.name is "lastIndexOf". -info: | - %TypedArray%.prototype.lastIndexOf ( searchElement [ , fromIndex ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.lastIndexOf.name, "lastIndexOf"); - -verifyNotEnumerable(TypedArray.prototype.lastIndexOf, "name"); -verifyNotWritable(TypedArray.prototype.lastIndexOf, "name"); -verifyConfigurable(TypedArray.prototype.lastIndexOf, "name"); diff --git a/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/prop-desc.js deleted file mode 100644 index 52a04ab83e0cbd1989f6bf809b36fc2fd9a31d9b..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// 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: > - "lastIndexOf" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'lastIndexOf'); -verifyWritable(TypedArrayPrototype, 'lastIndexOf'); -verifyConfigurable(TypedArrayPrototype, 'lastIndexOf'); diff --git a/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/this-is-not-object.js deleted file mode 100644 index 02a4312c088fac3a5e2728e0bfa65071008844de..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/this-is-not-object.js +++ /dev/null @@ -1,50 +0,0 @@ -// 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: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.17 %TypedArray%.prototype.lastIndexOf ( searchElement [ , fromIndex ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var lastIndexOf = TypedArray.prototype.lastIndexOf; - -assert.throws(TypeError, function() { - lastIndexOf.call(undefined, 42); -}, "this is undefined"); - -assert.throws(TypeError, function() { - lastIndexOf.call(null, 42); -}, "this is null"); - -assert.throws(TypeError, function() { - lastIndexOf.call(42, 42); -}, "this is 42"); - -assert.throws(TypeError, function() { - lastIndexOf.call("1", 42); -}, "this is a string"); - -assert.throws(TypeError, function() { - lastIndexOf.call(true, 42); -}, "this is true"); - -assert.throws(TypeError, function() { - lastIndexOf.call(false, 42); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - lastIndexOf.call(s, 42); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index e59dc5c5365e5b14c267c6d69e4dc068d766a909..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/lastIndexOf/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,42 +0,0 @@ -// 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: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.17 %TypedArray%.prototype.lastIndexOf ( searchElement [ , fromIndex ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var lastIndexOf = TypedArray.prototype.lastIndexOf; - -assert.throws(TypeError, function() { - lastIndexOf.call({}, 42); -}, "this is an Object"); - -assert.throws(TypeError, function() { - lastIndexOf.call([], 42); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - lastIndexOf.call(ab, 42); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - lastIndexOf.call(dv, 42); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/map/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/map/BigInt/invoked-as-func.js deleted file mode 100644 index 20e5bb5344e41d0560680962daf257cbdfb23883..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/map/BigInt/invoked-as-func.js +++ /dev/null @@ -1,30 +0,0 @@ -// 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: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.18 %TypedArray%.prototype.map ( callbackfn [ , thisArg ] ) - - 1. Let O be the this value. - 2. Let valid be ValidateTypedArray(O). - 3. ReturnIfAbrupt(valid). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var map = TypedArray.prototype.map; - -assert.sameValue(typeof map, 'function'); - -assert.throws(TypeError, function() { - map(); -}); diff --git a/test/built-ins/TypedArray/prototype/map/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/map/BigInt/invoked-as-method.js deleted file mode 100644 index 7f03579fd4bff8be1dc1433d106277cfda68ac4e..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/map/BigInt/invoked-as-method.js +++ /dev/null @@ -1,30 +0,0 @@ -// 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: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.18 %TypedArray%.prototype.map ( callbackfn [ , thisArg ] ) - - 1. Let O be the this value. - 2. Let valid be ValidateTypedArray(O). - 3. ReturnIfAbrupt(valid). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.map, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.map(); -}); diff --git a/test/built-ins/TypedArray/prototype/map/BigInt/length.js b/test/built-ins/TypedArray/prototype/map/BigInt/length.js deleted file mode 100644 index 95a983b03c6648d9b04ecb89e388c63328652299..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/map/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.map -description: > - %TypedArray%.prototype.map.length is 1. -info: | - %TypedArray%.prototype.map ( callbackfn [ , thisArg ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.map.length, 1); - -verifyNotEnumerable(TypedArray.prototype.map, "length"); -verifyNotWritable(TypedArray.prototype.map, "length"); -verifyConfigurable(TypedArray.prototype.map, "length"); diff --git a/test/built-ins/TypedArray/prototype/map/BigInt/name.js b/test/built-ins/TypedArray/prototype/map/BigInt/name.js deleted file mode 100644 index 0f54d40cb78538d94adec0f5a83f641810256f7d..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/map/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.map -description: > - %TypedArray%.prototype.map.name is "map". -info: | - %TypedArray%.prototype.map ( callbackfn [ , thisArg ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.map.name, "map"); - -verifyNotEnumerable(TypedArray.prototype.map, "name"); -verifyNotWritable(TypedArray.prototype.map, "name"); -verifyConfigurable(TypedArray.prototype.map, "name"); diff --git a/test/built-ins/TypedArray/prototype/map/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/map/BigInt/prop-desc.js deleted file mode 100644 index ea1d8805fc07d3ffcb9a0e4d7e61a31fbbbf66c9..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/map/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// 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: > - "map" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'map'); -verifyWritable(TypedArrayPrototype, 'map'); -verifyConfigurable(TypedArrayPrototype, 'map'); diff --git a/test/built-ins/TypedArray/prototype/map/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/map/BigInt/this-is-not-object.js deleted file mode 100644 index 50fa543a6d0290955b30f0289cfa3d8c16f21f39..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/map/BigInt/this-is-not-object.js +++ /dev/null @@ -1,51 +0,0 @@ -// 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: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.19 %TypedArray%.prototype.map ( callbackfn [ , thisArg ] ) - - 1. Let O be the this value. - 2. Perform ? ValidateTypedArray(O). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var map = TypedArray.prototype.map; -var callbackfn = function() {}; - -assert.throws(TypeError, function() { - map.call(undefined, callbackfn); -}, "this is undefined"); - -assert.throws(TypeError, function() { - map.call(null, callbackfn); -}, "this is null"); - -assert.throws(TypeError, function() { - map.call(42, callbackfn); -}, "this is 42"); - -assert.throws(TypeError, function() { - map.call("1", callbackfn); -}, "this is a string"); - -assert.throws(TypeError, function() { - map.call(true, callbackfn); -}, "this is true"); - -assert.throws(TypeError, function() { - map.call(false, callbackfn); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - map.call(s, callbackfn); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/map/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/map/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index 97266d74950106e9021a685cc6d5b375f2168678..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/map/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,43 +0,0 @@ -// 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: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.19 %TypedArray%.prototype.map ( callbackfn [ , thisArg ] ) - - 1. Let O be the this value. - 2. Perform ? ValidateTypedArray(O). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var map = TypedArray.prototype.map; -var callbackfn = function() {}; - -assert.throws(TypeError, function() { - map.call({}, callbackfn); -}, "this is an Object"); - -assert.throws(TypeError, function() { - map.call([], callbackfn); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - map.call(ab, callbackfn); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - map.call(dv, callbackfn); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/reduce/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/reduce/BigInt/invoked-as-func.js deleted file mode 100644 index 6b0406b58fee51caa75d4eb19c81853607653627..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/reduce/BigInt/invoked-as-func.js +++ /dev/null @@ -1,30 +0,0 @@ -// 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.reduce -description: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.19 %TypedArray%.prototype.reduce ( callbackfn [ , initialValue ] ) - - ... - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var reduce = TypedArray.prototype.reduce; - -assert.sameValue(typeof reduce, 'function'); - -assert.throws(TypeError, function() { - reduce(); -}); diff --git a/test/built-ins/TypedArray/prototype/reduce/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/reduce/BigInt/invoked-as-method.js deleted file mode 100644 index 609adb498e119b1d3e8f1e3e82a151fcb2afb61a..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/reduce/BigInt/invoked-as-method.js +++ /dev/null @@ -1,30 +0,0 @@ -// 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.reduce -description: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.19 %TypedArray%.prototype.reduce ( callbackfn [ , initialValue ] ) - - ... - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.reduce, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.reduce(); -}); diff --git a/test/built-ins/TypedArray/prototype/reduce/BigInt/length.js b/test/built-ins/TypedArray/prototype/reduce/BigInt/length.js deleted file mode 100644 index bb04ee94fb1460a1b8ed07d691522229a33ed0a0..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/reduce/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.reduce -description: > - %TypedArray%.prototype.reduce.length is 1. -info: | - %TypedArray%.prototype.reduce ( callbackfn [ , thisArg ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.reduce.length, 1); - -verifyNotEnumerable(TypedArray.prototype.reduce, "length"); -verifyNotWritable(TypedArray.prototype.reduce, "length"); -verifyConfigurable(TypedArray.prototype.reduce, "length"); diff --git a/test/built-ins/TypedArray/prototype/reduce/BigInt/name.js b/test/built-ins/TypedArray/prototype/reduce/BigInt/name.js deleted file mode 100644 index e07d1dfa5493ac1b6dc5f6a3d34abc0133c4bbe7..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/reduce/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.reduce -description: > - %TypedArray%.prototype.reduce.name is "reduce". -info: | - %TypedArray%.prototype.reduce ( callbackfn [ , thisArg ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.reduce.name, "reduce"); - -verifyNotEnumerable(TypedArray.prototype.reduce, "name"); -verifyNotWritable(TypedArray.prototype.reduce, "name"); -verifyConfigurable(TypedArray.prototype.reduce, "name"); diff --git a/test/built-ins/TypedArray/prototype/reduce/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/reduce/BigInt/prop-desc.js deleted file mode 100644 index ed8d8a42c17452f79d64d1a1271483d7daa3025b..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/reduce/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// 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.reduce -description: > - "reduce" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'reduce'); -verifyWritable(TypedArrayPrototype, 'reduce'); -verifyConfigurable(TypedArrayPrototype, 'reduce'); diff --git a/test/built-ins/TypedArray/prototype/reduce/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/reduce/BigInt/this-is-not-object.js deleted file mode 100644 index 14680f3d4473225e0d202dc0b6ead819c0e573fe..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/reduce/BigInt/this-is-not-object.js +++ /dev/null @@ -1,51 +0,0 @@ -// 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.reduce -description: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.20 %TypedArray%.prototype.reduce ( callbackfn [ , initialValue ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var reduce = TypedArray.prototype.reduce; -var callbackfn = function() {}; - -assert.throws(TypeError, function() { - reduce.call(undefined, callbackfn); -}, "this is undefined"); - -assert.throws(TypeError, function() { - reduce.call(null, callbackfn); -}, "this is null"); - -assert.throws(TypeError, function() { - reduce.call(42, callbackfn); -}, "this is 42"); - -assert.throws(TypeError, function() { - reduce.call("1", callbackfn); -}, "this is a string"); - -assert.throws(TypeError, function() { - reduce.call(true, callbackfn); -}, "this is true"); - -assert.throws(TypeError, function() { - reduce.call(false, callbackfn); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - reduce.call(s, callbackfn); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/reduce/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/reduce/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index 6dedc8cd2b6fb20be242f887c365f90c064970c9..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/reduce/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,43 +0,0 @@ -// 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.reduce -description: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.20 %TypedArray%.prototype.reduce ( callbackfn [ , initialValue ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var reduce = TypedArray.prototype.reduce; -var callbackfn = function() {}; - -assert.throws(TypeError, function() { - reduce.call({}, callbackfn); -}, "this is an Object"); - -assert.throws(TypeError, function() { - reduce.call([], callbackfn); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - reduce.call(ab, callbackfn); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - reduce.call(dv, callbackfn); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/reduceRight/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/reduceRight/BigInt/invoked-as-func.js deleted file mode 100644 index 9a0fec093065eb4a1a179466676e412f6367c82a..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/reduceRight/BigInt/invoked-as-func.js +++ /dev/null @@ -1,30 +0,0 @@ -// 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: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.20 %TypedArray%.prototype.reduceRight ( callbackfn [ , initialValue ] ) - - ... - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var reduceRight = TypedArray.prototype.reduceRight; - -assert.sameValue(typeof reduceRight, 'function'); - -assert.throws(TypeError, function() { - reduceRight(); -}); diff --git a/test/built-ins/TypedArray/prototype/reduceRight/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/reduceRight/BigInt/invoked-as-method.js deleted file mode 100644 index d36832aa2db87bb7f8980948af57b37fc8aee9de..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/reduceRight/BigInt/invoked-as-method.js +++ /dev/null @@ -1,30 +0,0 @@ -// 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: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.20 %TypedArray%.prototype.reduceRight ( callbackfn [ , initialValue ] ) - - ... - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.reduceRight, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.reduceRight(); -}); diff --git a/test/built-ins/TypedArray/prototype/reduceRight/BigInt/length.js b/test/built-ins/TypedArray/prototype/reduceRight/BigInt/length.js deleted file mode 100644 index 8cf3d8d6ac05edbe0b5731ac0ba23935b9d79425..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/reduceRight/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.reduceright -description: > - %TypedArray%.prototype.reduceRight.length is 1. -info: | - %TypedArray%.prototype.reduceRight ( callbackfn [ , thisArg ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.reduceRight.length, 1); - -verifyNotEnumerable(TypedArray.prototype.reduceRight, "length"); -verifyNotWritable(TypedArray.prototype.reduceRight, "length"); -verifyConfigurable(TypedArray.prototype.reduceRight, "length"); diff --git a/test/built-ins/TypedArray/prototype/reduceRight/BigInt/name.js b/test/built-ins/TypedArray/prototype/reduceRight/BigInt/name.js deleted file mode 100644 index fb63b3a3513c5986742d5c9a01dda36297cbc52a..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/reduceRight/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.reduceright -description: > - %TypedArray%.prototype.reduceRight.name is "reduceRight". -info: | - %TypedArray%.prototype.reduceRight ( callbackfn [ , thisArg ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.reduceRight.name, "reduceRight"); - -verifyNotEnumerable(TypedArray.prototype.reduceRight, "name"); -verifyNotWritable(TypedArray.prototype.reduceRight, "name"); -verifyConfigurable(TypedArray.prototype.reduceRight, "name"); diff --git a/test/built-ins/TypedArray/prototype/reduceRight/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/reduceRight/BigInt/prop-desc.js deleted file mode 100644 index 0d6f4d2fdd7f57fc6c284e9f510b92f4e0598f17..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/reduceRight/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// 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: > - "reduceRight" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'reduceRight'); -verifyWritable(TypedArrayPrototype, 'reduceRight'); -verifyConfigurable(TypedArrayPrototype, 'reduceRight'); diff --git a/test/built-ins/TypedArray/prototype/reduceRight/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/reduceRight/BigInt/this-is-not-object.js deleted file mode 100644 index fccf9de2bf19501d7ca7dd49a01e7e08121200a8..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/reduceRight/BigInt/this-is-not-object.js +++ /dev/null @@ -1,51 +0,0 @@ -// 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: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.21 %TypedArray%.prototype.reduceRight ( callbackfn [ , initialValue ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var reduceRight = TypedArray.prototype.reduceRight; -var callbackfn = function() {}; - -assert.throws(TypeError, function() { - reduceRight.call(undefined, callbackfn); -}, "this is undefined"); - -assert.throws(TypeError, function() { - reduceRight.call(null, callbackfn); -}, "this is null"); - -assert.throws(TypeError, function() { - reduceRight.call(42, callbackfn); -}, "this is 42"); - -assert.throws(TypeError, function() { - reduceRight.call("1", callbackfn); -}, "this is a string"); - -assert.throws(TypeError, function() { - reduceRight.call(true, callbackfn); -}, "this is true"); - -assert.throws(TypeError, function() { - reduceRight.call(false, callbackfn); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - reduceRight.call(s, callbackfn); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/reduceRight/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/reduceRight/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index 8092e93e937c6b90f3de86a9e22a83114088a1cf..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/reduceRight/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,43 +0,0 @@ -// 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: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.21 %TypedArray%.prototype.reduceRight ( callbackfn [ , initialValue ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var reduceRight = TypedArray.prototype.reduceRight; -var callbackfn = function() {}; - -assert.throws(TypeError, function() { - reduceRight.call({}, callbackfn); -}, "this is an Object"); - -assert.throws(TypeError, function() { - reduceRight.call([], callbackfn); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - reduceRight.call(ab, callbackfn); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - reduceRight.call(dv, callbackfn); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/reverse/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/reverse/BigInt/invoked-as-func.js deleted file mode 100644 index 48e16d6be6baadd737cf628c2965a2c15b14da4d..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/reverse/BigInt/invoked-as-func.js +++ /dev/null @@ -1,30 +0,0 @@ -// 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: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.21 %TypedArray%.prototype.reverse ( ) - - ... - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var reverse = TypedArray.prototype.reverse; - -assert.sameValue(typeof reverse, 'function'); - -assert.throws(TypeError, function() { - reverse(); -}); diff --git a/test/built-ins/TypedArray/prototype/reverse/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/reverse/BigInt/invoked-as-method.js deleted file mode 100644 index 601ce65ff68b483b3386e29a081373674818ac01..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/reverse/BigInt/invoked-as-method.js +++ /dev/null @@ -1,30 +0,0 @@ -// 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: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.21 %TypedArray%.prototype.reverse ( ) - - ... - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.reverse, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.reverse(); -}); diff --git a/test/built-ins/TypedArray/prototype/reverse/BigInt/length.js b/test/built-ins/TypedArray/prototype/reverse/BigInt/length.js deleted file mode 100644 index 22545aeb089b19e2dc63746e4540036d04233db5..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/reverse/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.reverse -description: > - %TypedArray%.prototype.reverse.length is 0. -info: | - %TypedArray%.prototype.reverse ( ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.reverse.length, 0); - -verifyNotEnumerable(TypedArray.prototype.reverse, "length"); -verifyNotWritable(TypedArray.prototype.reverse, "length"); -verifyConfigurable(TypedArray.prototype.reverse, "length"); diff --git a/test/built-ins/TypedArray/prototype/reverse/BigInt/name.js b/test/built-ins/TypedArray/prototype/reverse/BigInt/name.js deleted file mode 100644 index 2fda014b24a9ee741dca4234de0d414917f868fc..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/reverse/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.reverse -description: > - %TypedArray%.prototype.reverse.name is "reverse". -info: | - %TypedArray%.prototype.reverse ( ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.reverse.name, "reverse"); - -verifyNotEnumerable(TypedArray.prototype.reverse, "name"); -verifyNotWritable(TypedArray.prototype.reverse, "name"); -verifyConfigurable(TypedArray.prototype.reverse, "name"); diff --git a/test/built-ins/TypedArray/prototype/reverse/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/reverse/BigInt/prop-desc.js deleted file mode 100644 index 3bd6e881df1cf3eeb68ebd7f73c74a249f254c0b..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/reverse/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// 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: > - "reverse" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'reverse'); -verifyWritable(TypedArrayPrototype, 'reverse'); -verifyConfigurable(TypedArrayPrototype, 'reverse'); diff --git a/test/built-ins/TypedArray/prototype/reverse/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/reverse/BigInt/this-is-not-object.js deleted file mode 100644 index 82255a345418db552215a0c8b9681b3e3d11c7c9..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/reverse/BigInt/this-is-not-object.js +++ /dev/null @@ -1,50 +0,0 @@ -// 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: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.22 %TypedArray%.prototype.reverse ( ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var reverse = TypedArray.prototype.reverse; - -assert.throws(TypeError, function() { - reverse.call(undefined); -}, "this is undefined"); - -assert.throws(TypeError, function() { - reverse.call(null); -}, "this is null"); - -assert.throws(TypeError, function() { - reverse.call(42); -}, "this is 42"); - -assert.throws(TypeError, function() { - reverse.call("1"); -}, "this is a string"); - -assert.throws(TypeError, function() { - reverse.call(true); -}, "this is true"); - -assert.throws(TypeError, function() { - reverse.call(false); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - reverse.call(s); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/reverse/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/reverse/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index 07b5138d992e8fe492721f09cf6ed8bb08057ae6..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/reverse/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,42 +0,0 @@ -// 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: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.22 %TypedArray%.prototype.reverse ( ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var reverse = TypedArray.prototype.reverse; - -assert.throws(TypeError, function() { - reverse.call({}); -}, "this is an Object"); - -assert.throws(TypeError, function() { - reverse.call([]); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - reverse.call(ab); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - reverse.call(dv); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/set/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/set/BigInt/invoked-as-func.js deleted file mode 100644 index ee55b5aa41aaf3b88a01a88029223615010fdc6d..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/set/BigInt/invoked-as-func.js +++ /dev/null @@ -1,21 +0,0 @@ -// 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: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.22 %TypedArray%.prototype.set ( overloaded [ , offset ]) - - This function is not generic. The this value must be an object with a - [[TypedArrayName]] internal slot. -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var set = TypedArray.prototype.set; - -assert.sameValue(typeof set, 'function'); - -assert.throws(TypeError, function() { - set(); -}); diff --git a/test/built-ins/TypedArray/prototype/set/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/set/BigInt/invoked-as-method.js deleted file mode 100644 index 1b0a0869857a0a2f72c5ede9cf804ed3b447d4fd..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/set/BigInt/invoked-as-method.js +++ /dev/null @@ -1,21 +0,0 @@ -// 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: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.22 %TypedArray%.prototype.set ( overloaded [ , offset ]) - - This function is not generic. The this value must be an object with a - [[TypedArrayName]] internal slot. -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.set, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.set(); -}); diff --git a/test/built-ins/TypedArray/prototype/set/BigInt/length.js b/test/built-ins/TypedArray/prototype/set/BigInt/length.js deleted file mode 100644 index 2f1001cd0763702f7e47499332c247e54d872ff0..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/set/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.set -description: > - %TypedArray%.prototype.set.length is 1. -info: | - %TypedArray%.prototype.set ( overloaded [ , offset ]) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.set.length, 1); - -verifyNotEnumerable(TypedArray.prototype.set, "length"); -verifyNotWritable(TypedArray.prototype.set, "length"); -verifyConfigurable(TypedArray.prototype.set, "length"); diff --git a/test/built-ins/TypedArray/prototype/set/BigInt/name.js b/test/built-ins/TypedArray/prototype/set/BigInt/name.js deleted file mode 100644 index 85d386c7cdc115f208f69dc17483a9443a6d3bae..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/set/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.set -description: > - %TypedArray%.prototype.set.name is "set". -info: | - %TypedArray%.prototype.set ( overloaded [ , offset ]) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.set.name, "set"); - -verifyNotEnumerable(TypedArray.prototype.set, "name"); -verifyNotWritable(TypedArray.prototype.set, "name"); -verifyConfigurable(TypedArray.prototype.set, "name"); diff --git a/test/built-ins/TypedArray/prototype/set/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/set/BigInt/prop-desc.js deleted file mode 100644 index ca3c8bc1558d08973ceddcfa905fb5ac5d45b76e..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/set/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// 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: > - "set" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'set'); -verifyWritable(TypedArrayPrototype, 'set'); -verifyConfigurable(TypedArrayPrototype, 'set'); diff --git a/test/built-ins/TypedArray/prototype/set/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/set/BigInt/this-is-not-object.js deleted file mode 100644 index d1b6242e9d5c43e86ea77f57c0a25096f99b2093..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/set/BigInt/this-is-not-object.js +++ /dev/null @@ -1,75 +0,0 @@ -// 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-overloaded-offset -description: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.23 %TypedArray%.prototype.set - - ... - 2. Let target be the this value. - 3. If Type(target) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var set = TypedArray.prototype.set; - -assert.throws(TypeError, function() { - set.call(undefined, []); -}, "this is undefined"); - -assert.throws(TypeError, function() { - set.call(null, []); -}, "this is null"); - -assert.throws(TypeError, function() { - set.call(undefined, new Int8Array()); -}, "this is undefined"); - -assert.throws(TypeError, function() { - set.call(null, new Int8Array()); -}, "this is null"); - -assert.throws(TypeError, function() { - set.call(42, []); -}, "this is 42"); - -assert.throws(TypeError, function() { - set.call("1", []); -}, "this is a string"); - -assert.throws(TypeError, function() { - set.call(true, []); -}, "this is true"); - -assert.throws(TypeError, function() { - set.call(false, []); -}, "this is false"); - -var s1 = Symbol("s"); -assert.throws(TypeError, function() { - set.call(s1, []); -}, "this is a Symbol"); - -assert.throws(TypeError, function() { - set.call(42, new Int8Array(1)); -}, "this is 42"); - -assert.throws(TypeError, function() { - set.call("1", new Int8Array(1)); -}, "this is a string"); - -assert.throws(TypeError, function() { - set.call(true, new Int8Array(1)); -}, "this is true"); - -assert.throws(TypeError, function() { - set.call(false, new Int8Array(1)); -}, "this is false"); - -var s2 = Symbol("s"); -assert.throws(TypeError, function() { - set.call(s2, new Int8Array(1)); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/set/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/set/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index 77220ea6a7450972a458d6f55f33462154393368..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/set/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,56 +0,0 @@ -// 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-overloaded-offset -description: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.23 %TypedArray%.prototype.set - - ... - 2. Let target be the this value. - 3. If Type(target) is not Object, throw a TypeError exception. - 4. If target does not have a [[TypedArrayName]] internal slot, throw a - TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var set = TypedArray.prototype.set; - -assert.throws(TypeError, function() { - set.call({}, []); -}, "this is an Object"); - -assert.throws(TypeError, function() { - set.call([], []); -}, "this is an Array"); - -var ab1 = new ArrayBuffer(8); -assert.throws(TypeError, function() { - set.call(ab1, []); -}, "this is an ArrayBuffer instance"); - -var dv1 = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - set.call(dv1, []); -}, "this is a DataView instance"); - -assert.throws(TypeError, function() { - set.call({}, new Int8Array()); -}, "this is an Object"); - -assert.throws(TypeError, function() { - set.call([], new Int8Array()); -}, "this is an Array"); - -var ab2 = new ArrayBuffer(8); -assert.throws(TypeError, function() { - set.call(ab2, new Int8Array()); -}, "this is an ArrayBuffer instance"); - -var dv2 = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - set.call(dv2, new Int8Array()); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/slice/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/slice/BigInt/invoked-as-func.js deleted file mode 100644 index 31645fbb411151852f989ac23799cebec898269b..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/slice/BigInt/invoked-as-func.js +++ /dev/null @@ -1,30 +0,0 @@ -// 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: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.23 %TypedArray%.prototype.slice ( start, end ) - - 1. Let O be the this value. - 2. Let valid be ValidateTypedArray(O). - 3. ReturnIfAbrupt(valid). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var slice = TypedArray.prototype.slice; - -assert.sameValue(typeof slice, 'function'); - -assert.throws(TypeError, function() { - slice(); -}); diff --git a/test/built-ins/TypedArray/prototype/slice/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/slice/BigInt/invoked-as-method.js deleted file mode 100644 index 4b9c7c4ff89854673ec60915d0317bd19d78984f..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/slice/BigInt/invoked-as-method.js +++ /dev/null @@ -1,30 +0,0 @@ -// 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: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.23 %TypedArray%.prototype.slice ( start, end ) - - 1. Let O be the this value. - 2. Let valid be ValidateTypedArray(O). - 3. ReturnIfAbrupt(valid). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.slice, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.slice(); -}); diff --git a/test/built-ins/TypedArray/prototype/slice/BigInt/length.js b/test/built-ins/TypedArray/prototype/slice/BigInt/length.js deleted file mode 100644 index 57d76ac14118dbe19d6965193f0d2fd88f74aef1..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/slice/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.slice -description: > - %TypedArray%.prototype.slice.length is 2. -info: | - %TypedArray%.prototype.slice ( start, end ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.slice.length, 2); - -verifyNotEnumerable(TypedArray.prototype.slice, "length"); -verifyNotWritable(TypedArray.prototype.slice, "length"); -verifyConfigurable(TypedArray.prototype.slice, "length"); diff --git a/test/built-ins/TypedArray/prototype/slice/BigInt/name.js b/test/built-ins/TypedArray/prototype/slice/BigInt/name.js deleted file mode 100644 index 4021a1c507156d10ae40b2fb6b44e19d8476999e..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/slice/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.slice -description: > - %TypedArray%.prototype.slice.name is "slice". -info: | - %TypedArray%.prototype.slice ( start, end ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.slice.name, "slice"); - -verifyNotEnumerable(TypedArray.prototype.slice, "name"); -verifyNotWritable(TypedArray.prototype.slice, "name"); -verifyConfigurable(TypedArray.prototype.slice, "name"); diff --git a/test/built-ins/TypedArray/prototype/slice/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/slice/BigInt/prop-desc.js deleted file mode 100644 index d97889d479430c41d9b382a739bb38029a2dfad5..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/slice/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// 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: > - "slice" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'slice'); -verifyWritable(TypedArrayPrototype, 'slice'); -verifyConfigurable(TypedArrayPrototype, 'slice'); diff --git a/test/built-ins/TypedArray/prototype/slice/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/slice/BigInt/this-is-not-object.js deleted file mode 100644 index a16cf1c8cb99a320b7bf1bda7c892a1fac5204f5..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/slice/BigInt/this-is-not-object.js +++ /dev/null @@ -1,52 +0,0 @@ -// 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: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.24 %TypedArray%.prototype.slice ( start, end ) - - The following steps are taken: - - 1. Let O be the this value. - 2. Perform ? ValidateTypedArray(O). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var slice = TypedArray.prototype.slice; - -assert.throws(TypeError, function() { - slice.call(undefined, 0, 0); -}, "this is undefined"); - -assert.throws(TypeError, function() { - slice.call(null, 0, 0); -}, "this is null"); - -assert.throws(TypeError, function() { - slice.call(42, 0, 0); -}, "this is 42"); - -assert.throws(TypeError, function() { - slice.call("1", 0, 0); -}, "this is a string"); - -assert.throws(TypeError, function() { - slice.call(true, 0, 0); -}, "this is true"); - -assert.throws(TypeError, function() { - slice.call(false, 0, 0); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - slice.call(s, 0, 0); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/slice/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/slice/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index ad429c8a15e622a7e7245b742e5add157350d7e1..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/slice/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,44 +0,0 @@ -// 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: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.24 %TypedArray%.prototype.slice ( start, end ) - - The following steps are taken: - - 1. Let O be the this value. - 2. Perform ? ValidateTypedArray(O). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var slice = TypedArray.prototype.slice; - -assert.throws(TypeError, function() { - slice.call({}, 0, 0); -}, "this is an Object"); - -assert.throws(TypeError, function() { - slice.call([], 0, 0); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - slice.call(ab, 0, 0); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - slice.call(dv, 0, 0); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/some/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/some/BigInt/invoked-as-func.js deleted file mode 100644 index 4be0d0c6c2b52903e96883eb4e9a66a9d7b559fe..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/some/BigInt/invoked-as-func.js +++ /dev/null @@ -1,29 +0,0 @@ -// 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: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.24 %TypedArray%.prototype.some ( callbackfn [ , thisArg ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var some = TypedArray.prototype.some; - -assert.sameValue(typeof some, 'function'); - -assert.throws(TypeError, function() { - some(); -}); diff --git a/test/built-ins/TypedArray/prototype/some/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/some/BigInt/invoked-as-method.js deleted file mode 100644 index 71b8fd36dfada69e80f7d342db9e8b4c59787ea1..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/some/BigInt/invoked-as-method.js +++ /dev/null @@ -1,29 +0,0 @@ -// 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: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.24 %TypedArray%.prototype.some ( callbackfn [ , thisArg ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.some, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.some(); -}); diff --git a/test/built-ins/TypedArray/prototype/some/BigInt/length.js b/test/built-ins/TypedArray/prototype/some/BigInt/length.js deleted file mode 100644 index ee214df0fdc514d248998b5a2e5ca1bf3b2778a0..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/some/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.some -description: > - %TypedArray%.prototype.some.length is 1. -info: | - %TypedArray%.prototype.some ( callbackfn [ , thisArg ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.some.length, 1); - -verifyNotEnumerable(TypedArray.prototype.some, "length"); -verifyNotWritable(TypedArray.prototype.some, "length"); -verifyConfigurable(TypedArray.prototype.some, "length"); diff --git a/test/built-ins/TypedArray/prototype/some/BigInt/name.js b/test/built-ins/TypedArray/prototype/some/BigInt/name.js deleted file mode 100644 index 8bf75d8ea63539b93b3d0c5563bcf28d0c1bbe22..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/some/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.some -description: > - %TypedArray%.prototype.some.name is "some". -info: | - %TypedArray%.prototype.some ( callbackfn [ , thisArg ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.some.name, "some"); - -verifyNotEnumerable(TypedArray.prototype.some, "name"); -verifyNotWritable(TypedArray.prototype.some, "name"); -verifyConfigurable(TypedArray.prototype.some, "name"); diff --git a/test/built-ins/TypedArray/prototype/some/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/some/BigInt/prop-desc.js deleted file mode 100644 index 59a567362ffb047aff080c24c53895d454a15189..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/some/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// 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: > - "some" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'some'); -verifyWritable(TypedArrayPrototype, 'some'); -verifyConfigurable(TypedArrayPrototype, 'some'); diff --git a/test/built-ins/TypedArray/prototype/some/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/some/BigInt/this-is-not-object.js deleted file mode 100644 index cc7aba63fb83f12c7de22e8b13e6f07a5015cbbd..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/some/BigInt/this-is-not-object.js +++ /dev/null @@ -1,51 +0,0 @@ -// 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: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.25 %TypedArray%.prototype.some ( callbackfn [ , thisArg ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var some = TypedArray.prototype.some; -var callbackfn = function() {}; - -assert.throws(TypeError, function() { - some.call(undefined, callbackfn); -}, "this is undefined"); - -assert.throws(TypeError, function() { - some.call(null, callbackfn); -}, "this is null"); - -assert.throws(TypeError, function() { - some.call(42, callbackfn); -}, "this is 42"); - -assert.throws(TypeError, function() { - some.call("1", callbackfn); -}, "this is a string"); - -assert.throws(TypeError, function() { - some.call(true, callbackfn); -}, "this is true"); - -assert.throws(TypeError, function() { - some.call(false, callbackfn); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - some.call(s, callbackfn); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/some/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/some/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index 3cc3bb41f011015af8d56e2b9f99942dd937aa44..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/some/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,43 +0,0 @@ -// 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: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.25 %TypedArray%.prototype.some ( callbackfn [ , thisArg ] ) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var some = TypedArray.prototype.some; -var callbackfn = function () {}; - -assert.throws(TypeError, function() { - some.call({}, callbackfn); -}, "this is an Object"); - -assert.throws(TypeError, function() { - some.call([], callbackfn); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - some.call(ab, callbackfn); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - some.call(dv, callbackfn); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/sort/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/sort/BigInt/invoked-as-func.js deleted file mode 100644 index 760443c6f4b705527704dbeacb1f3561c132eaaf..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/sort/BigInt/invoked-as-func.js +++ /dev/null @@ -1,35 +0,0 @@ -// 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: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.25 %TypedArray%.prototype.sort ( comparefn ) - - ... - This function is not generic. The this value must be an object with a - [[TypedArrayName]] internal slot. - ... - - 1. Let obj be the this value as the argument. - 2. Let buffer be ValidateTypedArray(obj). - 3. ReturnIfAbrupt(buffer). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var sort = TypedArray.prototype.sort; - -assert.sameValue(typeof sort, 'function'); - -assert.throws(TypeError, function() { - sort(); -}); diff --git a/test/built-ins/TypedArray/prototype/sort/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/sort/BigInt/invoked-as-method.js deleted file mode 100644 index e288c99e567e234476d91cd54e505ee0c86e120a..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/sort/BigInt/invoked-as-method.js +++ /dev/null @@ -1,35 +0,0 @@ -// 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: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.25 %TypedArray%.prototype.sort ( comparefn ) - - ... - This function is not generic. The this value must be an object with a - [[TypedArrayName]] internal slot. - ... - - 1. Let obj be the this value as the argument. - 2. Let buffer be ValidateTypedArray(obj). - 3. ReturnIfAbrupt(buffer). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.sort, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.sort(); -}); diff --git a/test/built-ins/TypedArray/prototype/sort/BigInt/length.js b/test/built-ins/TypedArray/prototype/sort/BigInt/length.js deleted file mode 100644 index c6bbb9f28c51edfae91667b1516a5325eed8e1b5..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/sort/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.sort -description: > - %TypedArray%.prototype.sort.length is 1. -info: | - %TypedArray%.prototype.sort ( comparefn ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.sort.length, 1); - -verifyNotEnumerable(TypedArray.prototype.sort, "length"); -verifyNotWritable(TypedArray.prototype.sort, "length"); -verifyConfigurable(TypedArray.prototype.sort, "length"); diff --git a/test/built-ins/TypedArray/prototype/sort/BigInt/name.js b/test/built-ins/TypedArray/prototype/sort/BigInt/name.js deleted file mode 100644 index 5f516c540a92a42805135afec51714c9e7759922..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/sort/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.sort -description: > - %TypedArray%.prototype.sort.name is "sort". -info: | - %TypedArray%.prototype.sort ( comparefn ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.sort.name, "sort"); - -verifyNotEnumerable(TypedArray.prototype.sort, "name"); -verifyNotWritable(TypedArray.prototype.sort, "name"); -verifyConfigurable(TypedArray.prototype.sort, "name"); diff --git a/test/built-ins/TypedArray/prototype/sort/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/sort/BigInt/prop-desc.js deleted file mode 100644 index 86fc9e32b0755589d669da5d79bacaea4dd52653..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/sort/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// 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: > - "sort" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'sort'); -verifyWritable(TypedArrayPrototype, 'sort'); -verifyConfigurable(TypedArrayPrototype, 'sort'); diff --git a/test/built-ins/TypedArray/prototype/sort/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/sort/BigInt/this-is-not-object.js deleted file mode 100644 index 9c8a4c7fbb3f1e81b724e86fd8061b6952bf6725..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/sort/BigInt/this-is-not-object.js +++ /dev/null @@ -1,51 +0,0 @@ -// 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: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.26 %TypedArray%.prototype.sort ( comparefn ) - - 1. Let obj be the this value as the argument. - 2. Let buffer be ? ValidateTypedArray(obj). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var sort = TypedArray.prototype.sort; -var comparefn = function() {}; - -assert.throws(TypeError, function() { - sort.call(undefined, comparefn); -}, "this is undefined"); - -assert.throws(TypeError, function() { - sort.call(null, comparefn); -}, "this is null"); - -assert.throws(TypeError, function() { - sort.call(42, comparefn); -}, "this is 42"); - -assert.throws(TypeError, function() { - sort.call("1", comparefn); -}, "this is a string"); - -assert.throws(TypeError, function() { - sort.call(true, comparefn); -}, "this is true"); - -assert.throws(TypeError, function() { - sort.call(false, comparefn); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - sort.call(s, comparefn); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/sort/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/sort/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index 74e47bae58fd078253796e8011e743358a6ca5ad..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/sort/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,43 +0,0 @@ -// 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: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.26 %TypedArray%.prototype.sort ( comparefn ) - - 1. Let obj be the this value as the argument. - 2. Let buffer be ? ValidateTypedArray(obj). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var sort = TypedArray.prototype.sort; -var comparefn = function() {}; - -assert.throws(TypeError, function() { - sort.call({}, comparefn); -}, "this is an Object"); - -assert.throws(TypeError, function() { - sort.call([], comparefn); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - sort.call(ab, comparefn); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - sort.call(dv, comparefn); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/subarray/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/subarray/BigInt/invoked-as-func.js deleted file mode 100644 index dc28bbf0e1b788ac470314d01799cb1dd05e525c..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/subarray/BigInt/invoked-as-func.js +++ /dev/null @@ -1,24 +0,0 @@ -// 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: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.26 %TypedArray%.prototype.subarray( [ begin [ , end ] ] ) - - 1. Let O be the this value. - 2. If Type(O) is not Object, throw a TypeError exception. - 3. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var subarray = TypedArray.prototype.subarray; - -assert.sameValue(typeof subarray, 'function'); - -assert.throws(TypeError, function() { - subarray(); -}); diff --git a/test/built-ins/TypedArray/prototype/subarray/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/subarray/BigInt/invoked-as-method.js deleted file mode 100644 index 887e139bc38bfe2e126b2e7498746587345d2096..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/subarray/BigInt/invoked-as-method.js +++ /dev/null @@ -1,24 +0,0 @@ -// 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: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.26 %TypedArray%.prototype.subarray( [ begin [ , end ] ] ) - - 1. Let O be the this value. - 2. If Type(O) is not Object, throw a TypeError exception. - 3. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.subarray, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.subarray(); -}); diff --git a/test/built-ins/TypedArray/prototype/subarray/BigInt/length.js b/test/built-ins/TypedArray/prototype/subarray/BigInt/length.js deleted file mode 100644 index 818891a6313cf4ed4f5151fb24d82eb7abbdde33..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/subarray/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.subarray -description: > - %TypedArray%.prototype.subarray.length is 2. -info: | - %TypedArray%.prototype.subarray( [ begin [ , end ] ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.subarray.length, 2); - -verifyNotEnumerable(TypedArray.prototype.subarray, "length"); -verifyNotWritable(TypedArray.prototype.subarray, "length"); -verifyConfigurable(TypedArray.prototype.subarray, "length"); diff --git a/test/built-ins/TypedArray/prototype/subarray/BigInt/name.js b/test/built-ins/TypedArray/prototype/subarray/BigInt/name.js deleted file mode 100644 index 30c47e577efbb3c78397e0d5b29dd3b3c4d639a3..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/subarray/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.subarray -description: > - %TypedArray%.prototype.subarray.name is "subarray". -info: | - %TypedArray%.prototype.subarray( [ begin [ , end ] ] ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.subarray.name, "subarray"); - -verifyNotEnumerable(TypedArray.prototype.subarray, "name"); -verifyNotWritable(TypedArray.prototype.subarray, "name"); -verifyConfigurable(TypedArray.prototype.subarray, "name"); diff --git a/test/built-ins/TypedArray/prototype/subarray/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/subarray/BigInt/prop-desc.js deleted file mode 100644 index 2189490258b114d9f50714d8ca4a5a9b7ca085e4..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/subarray/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// 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: > - "subarray" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'subarray'); -verifyWritable(TypedArrayPrototype, 'subarray'); -verifyConfigurable(TypedArrayPrototype, 'subarray'); diff --git a/test/built-ins/TypedArray/prototype/subarray/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/subarray/BigInt/this-is-not-object.js deleted file mode 100644 index 976731c66bdc377e1a4b751c1a5329df99b44c21..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/subarray/BigInt/this-is-not-object.js +++ /dev/null @@ -1,47 +0,0 @@ -// 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: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.27 %TypedArray%.prototype.subarray( begin , end ) - - The following steps are taken: - - 1. Let O be the this value. - 2. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var subarray = TypedArray.prototype.subarray; - -assert.throws(TypeError, function() { - subarray.call(undefined, 0, 0); -}, "this is undefined"); - -assert.throws(TypeError, function() { - subarray.call(null, 0, 0); -}, "this is null"); - -assert.throws(TypeError, function() { - subarray.call(42, 0, 0); -}, "this is 42"); - -assert.throws(TypeError, function() { - subarray.call("1", 0, 0); -}, "this is a string"); - -assert.throws(TypeError, function() { - subarray.call(true, 0, 0); -}, "this is true"); - -assert.throws(TypeError, function() { - subarray.call(false, 0, 0); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - subarray.call(s, 0, 0); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/subarray/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/subarray/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index 275f5e2bde4451f85efa17659bdcc415f562c00a..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/subarray/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,39 +0,0 @@ -// 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: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.9 %TypedArray%.prototype.subarray( begin , end ) - - The following steps are taken: - - 1. Let O be the this value. - 2. If Type(O) is not Object, throw a TypeError exception. - 3. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var subarray = TypedArray.prototype.subarray; - -assert.throws(TypeError, function() { - subarray.call({}, 0, 0); -}, "this is an Object"); - -assert.throws(TypeError, function() { - subarray.call([], 0, 0); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - subarray.call(ab, 0, 0); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - subarray.call(dv, 0, 0); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/invoked-as-func.js deleted file mode 100644 index f8e43830dec750d0499894ae9b2866a3cf774c5e..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/invoked-as-func.js +++ /dev/null @@ -1,31 +0,0 @@ -// 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: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.27 %TypedArray%.prototype.toLocaleString ([ reserved1 [ , reserved2 ] ]) - - ... - - This function is not generic. ValidateTypedArray is applied to the this - value prior to evaluating the algorithm. If its result is an abrupt - completion that exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var toLocaleString = TypedArray.prototype.toLocaleString; - -assert.sameValue(typeof toLocaleString, 'function'); - -assert.throws(TypeError, function() { - toLocaleString(); -}); diff --git a/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/invoked-as-method.js deleted file mode 100644 index 977734f74ad810e5c60a0d1310febe3fd060f88c..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/invoked-as-method.js +++ /dev/null @@ -1,31 +0,0 @@ -// 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: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.27 %TypedArray%.prototype.toLocaleString ([ reserved1 [ , reserved2 ] ]) - - ... - - This function is not generic. ValidateTypedArray is applied to the this - value prior to evaluating the algorithm. If its result is an abrupt - completion that exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.toLocaleString, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.toLocaleString(); -}); diff --git a/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/length.js b/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/length.js deleted file mode 100644 index 1bf9e889b375540899e96f09fbbebcf5936d6e10..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.tolocalestring -description: > - %TypedArray%.prototype.toLocaleString.length is 0. -info: | - %TypedArray%.prototype.toLocaleString ([ reserved1 [ , reserved2 ] ]) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.toLocaleString.length, 0); - -verifyNotEnumerable(TypedArray.prototype.toLocaleString, "length"); -verifyNotWritable(TypedArray.prototype.toLocaleString, "length"); -verifyConfigurable(TypedArray.prototype.toLocaleString, "length"); diff --git a/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/name.js b/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/name.js deleted file mode 100644 index 87a238ad1224480450b90ef2c1085d1630bd9bac..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.tolocalestring -description: > - %TypedArray%.prototype.toLocaleString.name is "toLocaleString". -info: | - %TypedArray%.prototype.toLocaleString ([ reserved1 [ , reserved2 ] ]) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.toLocaleString.name, "toLocaleString"); - -verifyNotEnumerable(TypedArray.prototype.toLocaleString, "name"); -verifyNotWritable(TypedArray.prototype.toLocaleString, "name"); -verifyConfigurable(TypedArray.prototype.toLocaleString, "name"); diff --git a/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/prop-desc.js deleted file mode 100644 index 81d0cd37432a0baaff1355828f2615f81d61caf9..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// 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: > - "toLocaleString" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through 26 - and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'toLocaleString'); -verifyWritable(TypedArrayPrototype, 'toLocaleString'); -verifyConfigurable(TypedArrayPrototype, 'toLocaleString'); diff --git a/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/this-is-not-object.js deleted file mode 100644 index b67bf77c4e484d56b520e5a3b38658eabf1f0cf1..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/this-is-not-object.js +++ /dev/null @@ -1,50 +0,0 @@ -// 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: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.28 %TypedArray%.prototype.toLocaleString ([ reserved1 [ , reserved2 ] ]) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var toLocaleString = TypedArray.prototype.toLocaleString; - -assert.throws(TypeError, function() { - toLocaleString.call(undefined); -}, "this is undefined"); - -assert.throws(TypeError, function() { - toLocaleString.call(null); -}, "this is null"); - -assert.throws(TypeError, function() { - toLocaleString.call(42); -}, "this is 42"); - -assert.throws(TypeError, function() { - toLocaleString.call("1"); -}, "this is a string"); - -assert.throws(TypeError, function() { - toLocaleString.call(true); -}, "this is true"); - -assert.throws(TypeError, function() { - toLocaleString.call(false); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - toLocaleString.call(s); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index f98c9b5c0fb23fb17b9228c8b38775ceba4f86b2..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/toLocaleString/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,42 +0,0 @@ -// 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: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.28 %TypedArray%.prototype.toLocaleString ([ reserved1 [ , reserved2 ] ]) - - This function is not generic. ValidateTypedArray is applied to the this value - prior to evaluating the algorithm. If its result is an abrupt completion that - exception is thrown instead of evaluating the algorithm. - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var toLocaleString = TypedArray.prototype.toLocaleString; - -assert.throws(TypeError, function() { - toLocaleString.call({}); -}, "this is an Object"); - -assert.throws(TypeError, function() { - toLocaleString.call([]); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - toLocaleString.call(ab); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - toLocaleString.call(dv); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArray/prototype/values/BigInt/invoked-as-func.js b/test/built-ins/TypedArray/prototype/values/BigInt/invoked-as-func.js deleted file mode 100644 index 26607d78ab3a966bc2e4d733369dac570577c597..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/values/BigInt/invoked-as-func.js +++ /dev/null @@ -1,30 +0,0 @@ -// 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: Throws a TypeError exception when invoked as a function -info: | - 22.2.3.29 %TypedArray%.prototype.values ( ) - - 1. Let O be the this value. - 2. Let valid be ValidateTypedArray(O). - 3. ReturnIfAbrupt(valid). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var values = TypedArray.prototype.values; - -assert.sameValue(typeof values, 'function'); - -assert.throws(TypeError, function() { - values(); -}); diff --git a/test/built-ins/TypedArray/prototype/values/BigInt/invoked-as-method.js b/test/built-ins/TypedArray/prototype/values/BigInt/invoked-as-method.js deleted file mode 100644 index cec67a6def67c91d909ed75c5711a251c14b3eac..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/values/BigInt/invoked-as-method.js +++ /dev/null @@ -1,30 +0,0 @@ -// 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: Requires a [[TypedArrayName]] internal slot. -info: | - 22.2.3.29 %TypedArray%.prototype.values ( ) - - 1. Let O be the this value. - 2. Let valid be ValidateTypedArray(O). - 3. ReturnIfAbrupt(valid). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -assert.sameValue(typeof TypedArrayPrototype.values, 'function'); - -assert.throws(TypeError, function() { - TypedArrayPrototype.values(); -}); diff --git a/test/built-ins/TypedArray/prototype/values/BigInt/length.js b/test/built-ins/TypedArray/prototype/values/BigInt/length.js deleted file mode 100644 index ce420f0ae5014eae0bb03c0e43be77cec214c17f..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/values/BigInt/length.js +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.values -description: > - %TypedArray%.prototype.values.length is 0. -info: | - %TypedArray%.prototype.values ( ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, has a length - property whose value is an integer. Unless otherwise specified, this - value is equal to the largest number of named arguments shown in the - subclause headings for the function description, including optional - parameters. However, rest parameters shown using the form “...name†- are not included in the default argument count. - - Unless otherwise specified, the length property of a built-in Function - object has the attributes { [[Writable]]: false, [[Enumerable]]: false, - [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.values.length, 0); - -verifyNotEnumerable(TypedArray.prototype.values, "length"); -verifyNotWritable(TypedArray.prototype.values, "length"); -verifyConfigurable(TypedArray.prototype.values, "length"); diff --git a/test/built-ins/TypedArray/prototype/values/BigInt/name.js b/test/built-ins/TypedArray/prototype/values/BigInt/name.js deleted file mode 100644 index cc8ad3aed0fb75b799b6a7289eaa5ba7d0e3cf61..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/values/BigInt/name.js +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2015 André Bargull. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -esid: sec-%typedarray%.prototype.values -description: > - %TypedArray%.prototype.values.name is "values". -info: | - %TypedArray%.prototype.values ( ) - - 17 ECMAScript Standard Built-in Objects: - Every built-in Function object, including constructors, that is not - identified as an anonymous function has a name property whose value - is a String. - - Unless otherwise specified, the name property of a built-in Function - object, if it exists, has the attributes { [[Writable]]: false, - [[Enumerable]]: false, [[Configurable]]: true }. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -assert.sameValue(TypedArray.prototype.values.name, "values"); - -verifyNotEnumerable(TypedArray.prototype.values, "name"); -verifyNotWritable(TypedArray.prototype.values, "name"); -verifyConfigurable(TypedArray.prototype.values, "name"); diff --git a/test/built-ins/TypedArray/prototype/values/BigInt/prop-desc.js b/test/built-ins/TypedArray/prototype/values/BigInt/prop-desc.js deleted file mode 100644 index b805b7e8cd65f173d6af34b69000c7692380de19..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/values/BigInt/prop-desc.js +++ /dev/null @@ -1,19 +0,0 @@ -// 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: > - "values" property of TypedArrayPrototype -info: | - ES6 section 17: Every other data property described in clauses 18 through - 26 and in Annex B.2 has the attributes { [[Writable]]: true, - [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. -includes: [propertyHelper.js, testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var TypedArrayPrototype = TypedArray.prototype; - -verifyNotEnumerable(TypedArrayPrototype, 'values'); -verifyWritable(TypedArrayPrototype, 'values'); -verifyConfigurable(TypedArrayPrototype, 'values'); diff --git a/test/built-ins/TypedArray/prototype/values/BigInt/this-is-not-object.js b/test/built-ins/TypedArray/prototype/values/BigInt/this-is-not-object.js deleted file mode 100644 index 57b57a78b7faef28cea148217679ffb89232dbdf..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/values/BigInt/this-is-not-object.js +++ /dev/null @@ -1,52 +0,0 @@ -// 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: Throws a TypeError exception when `this` is not Object -info: | - 22.2.3.30 %TypedArray%.prototype.values ( ) - - The following steps are taken: - - 1. Let O be the this value. - 2. Perform ? ValidateTypedArray(O). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, Symbol, TypedArray] ----*/ - -var values = TypedArray.prototype.values; - -assert.throws(TypeError, function() { - values.call(undefined); -}, "this is undefined"); - -assert.throws(TypeError, function() { - values.call(null); -}, "this is null"); - -assert.throws(TypeError, function() { - values.call(42); -}, "this is 42"); - -assert.throws(TypeError, function() { - values.call("1"); -}, "this is a string"); - -assert.throws(TypeError, function() { - values.call(true); -}, "this is true"); - -assert.throws(TypeError, function() { - values.call(false); -}, "this is false"); - -var s = Symbol("s"); -assert.throws(TypeError, function() { - values.call(s); -}, "this is a Symbol"); diff --git a/test/built-ins/TypedArray/prototype/values/BigInt/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/values/BigInt/this-is-not-typedarray-instance.js deleted file mode 100644 index 68b78aeddd50392ea92d249c8ad9f171043645e1..0000000000000000000000000000000000000000 --- a/test/built-ins/TypedArray/prototype/values/BigInt/this-is-not-typedarray-instance.js +++ /dev/null @@ -1,44 +0,0 @@ -// 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: > - Throws a TypeError exception when `this` is not a TypedArray instance -info: | - 22.2.3.30 %TypedArray%.prototype.values ( ) - - The following steps are taken: - - 1. Let O be the this value. - 2. Perform ? ValidateTypedArray(O). - ... - - 22.2.3.5.1 Runtime Semantics: ValidateTypedArray ( O ) - - 1. If Type(O) is not Object, throw a TypeError exception. - 2. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError - exception. - ... -includes: [testBigIntTypedArray.js] -features: [BigInt, TypedArray] ----*/ - -var values = TypedArray.prototype.values; - -assert.throws(TypeError, function() { - values.call({}); -}, "this is an Object"); - -assert.throws(TypeError, function() { - values.call([]); -}, "this is an Array"); - -var ab = new ArrayBuffer(8); -assert.throws(TypeError, function() { - values.call(ab); -}, "this is an ArrayBuffer instance"); - -var dv = new DataView(new ArrayBuffer(8), 0, 1); -assert.throws(TypeError, function() { - values.call(dv); -}, "this is a DataView instance"); diff --git a/test/built-ins/TypedArrays/ctors-bigint/buffer-arg/bufferbyteoffset-throws-from-modulo-element-size-sab.js b/test/built-ins/TypedArrays/ctors-bigint/buffer-arg/bufferbyteoffset-throws-from-modulo-element-size-sab.js index 932cfb3c97096b3b90e53575a017814023286f1d..73de6c0602f3a0fe415df848452ff1bf4c7d43e2 100644 --- a/test/built-ins/TypedArrays/ctors-bigint/buffer-arg/bufferbyteoffset-throws-from-modulo-element-size-sab.js +++ b/test/built-ins/TypedArrays/ctors-bigint/buffer-arg/bufferbyteoffset-throws-from-modulo-element-size-sab.js @@ -23,11 +23,6 @@ features: [BigInt, SharedArrayBuffer, TypedArray] var buffer = new SharedArrayBuffer(1); testWithBigIntTypedArrayConstructors(function(TA) { - if (TA.BYTES_PER_ELEMENT === 1) { - // Impossible to trigger this step here. - return; - } - assert.throws(RangeError, function() { new TA(buffer); }); diff --git a/test/built-ins/TypedArrays/ctors-bigint/buffer-arg/bufferbyteoffset-throws-from-modulo-element-size.js b/test/built-ins/TypedArrays/ctors-bigint/buffer-arg/bufferbyteoffset-throws-from-modulo-element-size.js index f5f71f3d2a88e94d77dccc76e32cc0e831e637e0..171ea96a4c42d8c0d7be384d186557cf8f279efc 100644 --- a/test/built-ins/TypedArrays/ctors-bigint/buffer-arg/bufferbyteoffset-throws-from-modulo-element-size.js +++ b/test/built-ins/TypedArrays/ctors-bigint/buffer-arg/bufferbyteoffset-throws-from-modulo-element-size.js @@ -22,11 +22,6 @@ features: [BigInt, TypedArray] var buffer = new ArrayBuffer(1); testWithBigIntTypedArrayConstructors(function(TA) { - if (TA.BYTES_PER_ELEMENT === 1) { - // Impossible to trigger this step here. - return; - } - assert.throws(RangeError, function() { new TA(buffer); }); diff --git a/test/built-ins/TypedArrays/ctors-bigint/buffer-arg/byteoffset-throws-from-modulo-element-size-sab.js b/test/built-ins/TypedArrays/ctors-bigint/buffer-arg/byteoffset-throws-from-modulo-element-size-sab.js index 7e9b40e66a3a32eb34d292048f87c66a3408b712..0782f270d16991647719f1663c98b619ff2672da 100644 --- a/test/built-ins/TypedArrays/ctors-bigint/buffer-arg/byteoffset-throws-from-modulo-element-size-sab.js +++ b/test/built-ins/TypedArrays/ctors-bigint/buffer-arg/byteoffset-throws-from-modulo-element-size-sab.js @@ -22,11 +22,6 @@ features: [BigInt, SharedArrayBuffer, TypedArray] var buffer = new SharedArrayBuffer(8); testWithBigIntTypedArrayConstructors(function(TA) { - if (TA.BYTES_PER_ELEMENT === 1) { - // Impossible to trigger this step here. - return; - } - assert.throws(RangeError, function() { new TA(buffer, 7); }); diff --git a/test/built-ins/TypedArrays/ctors-bigint/buffer-arg/byteoffset-throws-from-modulo-element-size.js b/test/built-ins/TypedArrays/ctors-bigint/buffer-arg/byteoffset-throws-from-modulo-element-size.js index e511bc394578a567c770835ee13d1ac648cd5cd4..9e4f26ee67a549b9d72163c5df738af6ecf215e8 100644 --- a/test/built-ins/TypedArrays/ctors-bigint/buffer-arg/byteoffset-throws-from-modulo-element-size.js +++ b/test/built-ins/TypedArrays/ctors-bigint/buffer-arg/byteoffset-throws-from-modulo-element-size.js @@ -21,11 +21,6 @@ features: [BigInt, TypedArray] var buffer = new ArrayBuffer(8); testWithBigIntTypedArrayConstructors(function(TA) { - if (TA.BYTES_PER_ELEMENT === 1) { - // Impossible to trigger this step here. - return; - } - assert.throws(RangeError, function() { new TA(buffer, 7); }); diff --git a/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-buffer-ctor-not-object-throws.js b/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-buffer-ctor-not-object-throws.js index 435136a08a7fce2d600cbccb1a56486b5d341ca6..44b76c2b95ef160f3d142ead12171483b2f43da8 100644 --- a/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-buffer-ctor-not-object-throws.js +++ b/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-buffer-ctor-not-object-throws.js @@ -27,11 +27,11 @@ includes: [testBigIntTypedArray.js] features: [BigInt, Symbol, TypedArray] ---*/ -var sample1 = new Int8Array(); -var sample2 = new Int16Array(); +var sample1 = new BigInt64Array(); +var sample2 = new BigUint64Array(); testWithBigIntTypedArrayConstructors(function(TA) { - var sample = TA === Int8Array ? sample2 : sample1; + var sample = TA === BigInt64Array ? sample2 : sample1; sample.buffer.constructor = 1; assert.throws(TypeError, function() { diff --git a/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-buffer-ctor-species-access-throws.js b/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-buffer-ctor-species-access-throws.js index 8b02063619e0752de5ee40b3d29d4e0dc5bed7ef..8b3933eedb5be662a98fa54b38b91066b3d3ddd7 100644 --- a/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-buffer-ctor-species-access-throws.js +++ b/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-buffer-ctor-species-access-throws.js @@ -25,11 +25,11 @@ includes: [testBigIntTypedArray.js] features: [BigInt, Symbol.species, TypedArray] ---*/ -var sample1 = new Int8Array(); -var sample2 = new Int16Array(); +var sample1 = new BigInt64Array(); +var sample2 = new BigUint64Array(); testWithBigIntTypedArrayConstructors(function(TA) { - var sample = TA === Int8Array ? sample2 : sample1; + var sample = TA === BigInt64Array ? sample2 : sample1; var ctor = {}; sample.buffer.constructor = ctor; diff --git a/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-buffer-ctor-species-not-ctor-throws.js b/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-buffer-ctor-species-not-ctor-throws.js index 338a63b20ad4c0b501104b07e5ef1f27c50512e5..09a8068e9f27d27392411b6a0a697a6fe072034b 100644 --- a/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-buffer-ctor-species-not-ctor-throws.js +++ b/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-buffer-ctor-species-not-ctor-throws.js @@ -27,8 +27,8 @@ includes: [testBigIntTypedArray.js] features: [BigInt, Symbol.species, TypedArray] ---*/ -var sample1 = new Int8Array(); -var sample2 = new Int16Array(); +var sample1 = new BigInt64Array(); +var sample2 = new BigUint64Array(); var ctor = function() { throw new Test262Error(); @@ -37,7 +37,7 @@ var m = { m() {} }.m; ctor[Symbol.species] = m; testWithBigIntTypedArrayConstructors(function(TA) { - var sample = TA === Int8Array ? sample2 : sample1; + var sample = TA === BigInt64Array ? sample2 : sample1; sample.buffer.constructor = ctor; diff --git a/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-buffer-ctor-species-prototype-throws.js b/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-buffer-ctor-species-prototype-throws.js index dea4919af1384d630b1d75a8f82c844429e5e269..705b8a7319ce8edce1db87f7d2943e5140dcd653 100644 --- a/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-buffer-ctor-species-prototype-throws.js +++ b/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-buffer-ctor-species-prototype-throws.js @@ -35,11 +35,11 @@ includes: [testBigIntTypedArray.js] features: [BigInt, Symbol.species, TypedArray] ---*/ -var sample1 = new Int8Array(); -var sample2 = new Int16Array(); +var sample1 = new BigInt64Array(); +var sample2 = new BigUint64Array(); testWithBigIntTypedArrayConstructors(function(TA) { - var sample = TA === Int8Array ? sample2 : sample1; + var sample = TA === BigInt64Array ? sample2 : sample1; var ctor = {}; var called = 0; diff --git a/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-returns-new-typedarray.js b/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-returns-new-typedarray.js index 2c87901fd244b289062d6b589a5a0a6bdd423615..754abcd42d678dbca9a44674e321ca7ab22fd3fe 100644 --- a/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-returns-new-typedarray.js +++ b/test/built-ins/TypedArrays/ctors-bigint/typedarray-arg/typedarray-arg-other-ctor-returns-new-typedarray.js @@ -14,15 +14,11 @@ includes: [testBigIntTypedArray.js] features: [BigInt, TypedArray] ---*/ -var sample1 = new Int8Array(7); -var sample2 = new Int16Array(7); -var sample3 = new BigInt64Array(7); -var sample4 = new BigUint64Array(7); +var sample1 = new BigInt64Array(); +var sample2 = new BigUint64Array(); testWithBigIntTypedArrayConstructors(function(TA) { - var sample = TA === Int8Array ? sample2 : - TA === BigInt64Array ? sample4 : - TA === BigUint64Array ? sample3 : sample1; + var sample = TA === BigInt64Array ? sample2 : sample1; var typedArray = new TA(sample); assert.sameValue(typedArray.length, 7); diff --git a/test/built-ins/TypedArrays/ctors/buffer-arg/buffer-arg-bufferbyteoffset-throws-from-modulo-element-size-sab.js b/test/built-ins/TypedArrays/ctors/buffer-arg/buffer-arg-bufferbyteoffset-throws-from-modulo-element-size-sab.js index 707aa00be3fa609d79488f8a3c636dd656fc3f18..b07837b84cba65c2242547fb7e5362fca03ff19c 100644 --- a/test/built-ins/TypedArrays/ctors/buffer-arg/buffer-arg-bufferbyteoffset-throws-from-modulo-element-size-sab.js +++ b/test/built-ins/TypedArrays/ctors/buffer-arg/buffer-arg-bufferbyteoffset-throws-from-modulo-element-size-sab.js @@ -23,11 +23,6 @@ features: [SharedArrayBuffer, TypedArray] var buffer = new SharedArrayBuffer(1); testWithTypedArrayConstructors(function(TA) { - if (TA.BYTES_PER_ELEMENT === 1) { - // Impossible to trigger this step here. - return; - } - assert.throws(RangeError, function() { new TA(buffer); }); diff --git a/test/built-ins/TypedArrays/ctors/buffer-arg/buffer-arg-bufferbyteoffset-throws-from-modulo-element-size.js b/test/built-ins/TypedArrays/ctors/buffer-arg/buffer-arg-bufferbyteoffset-throws-from-modulo-element-size.js index a886e5afdad028791f6298e8cd27f4afec0f9246..1c916b43cdf332e338bc0280d50df49767b5dd67 100644 --- a/test/built-ins/TypedArrays/ctors/buffer-arg/buffer-arg-bufferbyteoffset-throws-from-modulo-element-size.js +++ b/test/built-ins/TypedArrays/ctors/buffer-arg/buffer-arg-bufferbyteoffset-throws-from-modulo-element-size.js @@ -22,11 +22,6 @@ features: [TypedArray] var buffer = new ArrayBuffer(1); testWithTypedArrayConstructors(function(TA) { - if (TA.BYTES_PER_ELEMENT === 1) { - // Impossible to trigger this step here. - return; - } - assert.throws(RangeError, function() { new TA(buffer); }); diff --git a/test/built-ins/TypedArrays/ctors/buffer-arg/buffer-arg-byteoffset-throws-from-modulo-element-size-sab.js b/test/built-ins/TypedArrays/ctors/buffer-arg/buffer-arg-byteoffset-throws-from-modulo-element-size-sab.js index 79b398ccfb493de9d97287d18a744b47ee215819..645f259af94466286cfba1581ad04d4432ae69f8 100644 --- a/test/built-ins/TypedArrays/ctors/buffer-arg/buffer-arg-byteoffset-throws-from-modulo-element-size-sab.js +++ b/test/built-ins/TypedArrays/ctors/buffer-arg/buffer-arg-byteoffset-throws-from-modulo-element-size-sab.js @@ -22,11 +22,6 @@ features: [SharedArrayBuffer, TypedArray] var buffer = new SharedArrayBuffer(8); testWithTypedArrayConstructors(function(TA) { - if (TA.BYTES_PER_ELEMENT === 1) { - // Impossible to trigger this step here. - return; - } - assert.throws(RangeError, function() { new TA(buffer, 7); }); diff --git a/test/built-ins/TypedArrays/ctors/buffer-arg/buffer-arg-byteoffset-throws-from-modulo-element-size.js b/test/built-ins/TypedArrays/ctors/buffer-arg/buffer-arg-byteoffset-throws-from-modulo-element-size.js index 479f0d5dc1f1873192c41834409174235cf7ceae..f495e6bcc00d874bb9c33302e37f837eb3d9ea93 100644 --- a/test/built-ins/TypedArrays/ctors/buffer-arg/buffer-arg-byteoffset-throws-from-modulo-element-size.js +++ b/test/built-ins/TypedArrays/ctors/buffer-arg/buffer-arg-byteoffset-throws-from-modulo-element-size.js @@ -21,11 +21,6 @@ features: [TypedArray] var buffer = new ArrayBuffer(8); testWithTypedArrayConstructors(function(TA) { - if (TA.BYTES_PER_ELEMENT === 1) { - // Impossible to trigger this step here. - return; - } - assert.throws(RangeError, function() { new TA(buffer, 7); });