diff options
Diffstat (limited to 'test/built-ins/TypedArray/prototype/every/callbackfn-return-does-not-change-instance.js')
-rw-r--r-- | test/built-ins/TypedArray/prototype/every/callbackfn-return-does-not-change-instance.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/built-ins/TypedArray/prototype/every/callbackfn-return-does-not-change-instance.js b/test/built-ins/TypedArray/prototype/every/callbackfn-return-does-not-change-instance.js index 5eeb597c9..c882314fe 100644 --- a/test/built-ins/TypedArray/prototype/every/callbackfn-return-does-not-change-instance.js +++ b/test/built-ins/TypedArray/prototype/every/callbackfn-return-does-not-change-instance.js @@ -25,14 +25,14 @@ includes: [testTypedArray.js] features: [TypedArray] ---*/ -testWithTypedArrayConstructors(function(TA) { - var sample = new TA([40, 41, 42]); +testWithTypedArrayConstructors(function(TA, N) { + var sample = new TA(N([40, 41, 42])); sample.every(function() { return 43; }); - assert.sameValue(sample[0], 40, "[0] == 40"); - assert.sameValue(sample[1], 41, "[1] == 41"); - assert.sameValue(sample[2], 42, "[2] == 42"); + assert.sameValue(sample[0], N(40), "[0] == 40"); + assert.sameValue(sample[1], N(41), "[1] == 41"); + assert.sameValue(sample[2], N(42), "[2] == 42"); }); |