diff options
Diffstat (limited to 'test/built-ins/TypedArray/prototype/slice/arraylength-internal.js')
-rw-r--r-- | test/built-ins/TypedArray/prototype/slice/arraylength-internal.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/built-ins/TypedArray/prototype/slice/arraylength-internal.js b/test/built-ins/TypedArray/prototype/slice/arraylength-internal.js index 2c9e7cba3..8cf705583 100644 --- a/test/built-ins/TypedArray/prototype/slice/arraylength-internal.js +++ b/test/built-ins/TypedArray/prototype/slice/arraylength-internal.js @@ -23,8 +23,8 @@ var desc = { Object.defineProperty(TypedArray.prototype, "length", desc); -testWithTypedArrayConstructors(function(TA) { - var sample = new TA([42, 43]); +testWithTypedArrayConstructors(function(TA, N) { + var sample = new TA(N([42, 43])); Object.defineProperty(TA.prototype, "length", desc); Object.defineProperty(sample, "length", desc); @@ -32,7 +32,7 @@ testWithTypedArrayConstructors(function(TA) { var result = sample.slice(); assert.sameValue(getCalls, 0, "ignores length properties"); - assert.sameValue(result[0], 42); - assert.sameValue(result[1], 43); + assert.sameValue(result[0], N(42)); + assert.sameValue(result[1], N(43)); assert.sameValue(result.hasOwnProperty(2), false); }); |