summaryrefslogtreecommitdiff
path: root/test/built-ins/TypedArray/prototype/reduceRight/callbackfn-no-iteration-over-non-integer-properties.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/TypedArray/prototype/reduceRight/callbackfn-no-iteration-over-non-integer-properties.js')
-rw-r--r--test/built-ins/TypedArray/prototype/reduceRight/callbackfn-no-iteration-over-non-integer-properties.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/built-ins/TypedArray/prototype/reduceRight/callbackfn-no-iteration-over-non-integer-properties.js b/test/built-ins/TypedArray/prototype/reduceRight/callbackfn-no-iteration-over-non-integer-properties.js
index b81c9a91e..c807f650a 100644
--- a/test/built-ins/TypedArray/prototype/reduceRight/callbackfn-no-iteration-over-non-integer-properties.js
+++ b/test/built-ins/TypedArray/prototype/reduceRight/callbackfn-no-iteration-over-non-integer-properties.js
@@ -27,8 +27,8 @@ includes: [testTypedArray.js]
features: [Symbol, TypedArray]
---*/
-testWithTypedArrayConstructors(function(TA) {
- var sample = new TA([7, 8]);
+testWithTypedArrayConstructors(function(TA, N) {
+ var sample = new TA(N([7, 8]));
var results = [];
@@ -44,6 +44,6 @@ testWithTypedArrayConstructors(function(TA) {
assert.sameValue(results[0][2], 1, "results[0][2] - k");
assert.sameValue(results[1][2], 0, "results[1][2] - k");
- assert.sameValue(results[0][1], 8, "results[0][1] - kValue");
- assert.sameValue(results[1][1], 7, "results[1][1] - kValue");
+ assert.sameValue(results[0][1], N(8), "results[0][1] - kValue");
+ assert.sameValue(results[1][1], N(7), "results[1][1] - kValue");
});