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