summaryrefslogtreecommitdiff
path: root/test/built-ins/TypedArray/prototype/slice/results-with-same-length.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/TypedArray/prototype/slice/results-with-same-length.js')
-rw-r--r--test/built-ins/TypedArray/prototype/slice/results-with-same-length.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/built-ins/TypedArray/prototype/slice/results-with-same-length.js b/test/built-ins/TypedArray/prototype/slice/results-with-same-length.js
index d89cbbdf5..904efd50b 100644
--- a/test/built-ins/TypedArray/prototype/slice/results-with-same-length.js
+++ b/test/built-ins/TypedArray/prototype/slice/results-with-same-length.js
@@ -7,15 +7,15 @@ includes: [testTypedArray.js, compareArray.js]
features: [TypedArray]
---*/
-testWithTypedArrayConstructors(function(TA) {
- var sample = new TA([40, 41, 42, 43]);
+testWithTypedArrayConstructors(function(TA, N) {
+ var sample = new TA(N([40, 41, 42, 43]));
function testRes(result, msg) {
assert.sameValue(result.length, 4, msg);
- assert.sameValue(result[0], 40, msg + " & result[0] === 40");
- assert.sameValue(result[1], 41, msg + " & result[1] === 41");
- assert.sameValue(result[2], 42, msg + " & result[2] === 42");
- assert.sameValue(result[3], 43, msg + " & result[3] === 43");
+ assert.sameValue(result[0], N(40), msg + " & result[0] === 40");
+ assert.sameValue(result[1], N(41), msg + " & result[1] === 41");
+ assert.sameValue(result[2], N(42), msg + " & result[2] === 42");
+ assert.sameValue(result[3], N(43), msg + " & result[3] === 43");
}
testRes(sample.slice(0), "begin == 0");