summaryrefslogtreecommitdiff
path: root/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-invocation.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-invocation.js')
-rw-r--r--test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-invocation.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-invocation.js b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-invocation.js
index ad8313a26..3339c513a 100644
--- a/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-invocation.js
+++ b/test/built-ins/TypedArray/prototype/filter/speciesctor-get-species-custom-ctor-invocation.js
@@ -36,8 +36,8 @@ includes: [testTypedArray.js]
features: [Symbol.species, TypedArray]
---*/
-testWithTypedArrayConstructors(function(TA) {
- var sample = new TA([40, 42, 42]);
+testWithTypedArrayConstructors(function(TA, N) {
+ var sample = new TA(N([40, 42, 42]));
var result, ctorThis;
sample.constructor = {};
@@ -47,7 +47,7 @@ testWithTypedArrayConstructors(function(TA) {
return new TA(count);
};
- sample.filter(function(v) { return v === 42; });
+ sample.filter(function(v) { return v === N(42); });
assert.sameValue(result.length, 1, "called with 1 argument");
assert.sameValue(result[0], 2, "[0] is the new captured length");