| Index: test/mjsunit/es6/typedarray-foreach.js
|
| diff --git a/test/mjsunit/es6/typedarray-foreach.js b/test/mjsunit/es6/typedarray-foreach.js
|
| index b9789805f69b466bdccafdeb457fbca8b192ad8d..7a846b1ac7843a6a732e0d1a752f6ea1c9b4fcd6 100644
|
| --- a/test/mjsunit/es6/typedarray-foreach.js
|
| +++ b/test/mjsunit/es6/typedarray-foreach.js
|
| @@ -148,6 +148,11 @@ function TestTypedArrayForEach(constructor) {
|
| assertEquals(Array.prototype.forEach.call(a,
|
| function(elt) { x += elt; }), undefined);
|
| assertEquals(x, 4);
|
| +
|
| + // Detached Operation
|
| + var array = new constructor([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]);
|
| + %ArrayBufferNeuter(array.buffer);
|
| + assertThrows(() => array.forEach(() => true), TypeError);
|
| }
|
|
|
| for (i = 0; i < typedArrayConstructors.length; i++) {
|
|
|