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