diff options
Diffstat (limited to 'test/built-ins/TypedArray/prototype/forEach/values-are-not-cached.js')
-rw-r--r-- | test/built-ins/TypedArray/prototype/forEach/values-are-not-cached.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/built-ins/TypedArray/prototype/forEach/values-are-not-cached.js b/test/built-ins/TypedArray/prototype/forEach/values-are-not-cached.js index 10b311356..7a965668d 100644 --- a/test/built-ins/TypedArray/prototype/forEach/values-are-not-cached.js +++ b/test/built-ins/TypedArray/prototype/forEach/values-are-not-cached.js @@ -16,16 +16,16 @@ includes: [testTypedArray.js] features: [TypedArray] ---*/ -testWithTypedArrayConstructors(function(TA) { - var sample = new TA([42, 43, 44]); +testWithTypedArrayConstructors(function(TA, N) { + var sample = new TA(N([42, 43, 44])); sample.forEach(function(v, i) { if (i < sample.length - 1) { - sample[i+1] = 42; + sample[i+1] = N(42); } assert.sameValue( - v, 42, "method does not cache values before callbackfn calls" + v, N(42), "method does not cache values before callbackfn calls" ); }); }); |