| Index: test/mjsunit/harmony/typedarrays.js
|
| diff --git a/test/mjsunit/harmony/typedarrays.js b/test/mjsunit/harmony/typedarrays.js
|
| index 99364c8101757a2b3b178807e3a88e22664adbd4..8e8ec5748b472a9c47061da7546c713103992b5f 100644
|
| --- a/test/mjsunit/harmony/typedarrays.js
|
| +++ b/test/mjsunit/harmony/typedarrays.js
|
| @@ -453,8 +453,15 @@ function TestTypedArraySet() {
|
|
|
| // Invalid source
|
| var a = new Uint16Array(50);
|
| - assertThrows(function() { a.set(0) }, TypeError);
|
| - assertThrows(function() { a.set({}) }, TypeError);
|
| + var expected = [];
|
| + for (i = 0; i < 50; i++) {
|
| + a[i] = i;
|
| + expected.push(i);
|
| + }
|
| + a.set(0);
|
| + assertArrayPrefix(expected, a);
|
| + a.set({});
|
| + assertArrayPrefix(expected, a);
|
| assertThrows(function() { a.set.call({}) }, TypeError);
|
| assertThrows(function() { a.set.call([]) }, TypeError);
|
| }
|
|
|