summaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/external-array.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/mjsunit/external-array.js')
-rw-r--r--deps/v8/test/mjsunit/external-array.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/deps/v8/test/mjsunit/external-array.js b/deps/v8/test/mjsunit/external-array.js
index deb3c8659d..3fcd544ab6 100644
--- a/deps/v8/test/mjsunit/external-array.js
+++ b/deps/v8/test/mjsunit/external-array.js
@@ -605,8 +605,10 @@ a61.set(a62)
assertArrayPrefix([1, 12], a61)
// Invalid source
-assertThrows(function() { a.set(0) })
-assertThrows(function() { a.set({}) })
+assertThrows(function() { a.set(0); }, TypeError);
+assertArrayPrefix([1,2,3,4,5,6], a);
+a.set({}); // does not throw
+assertArrayPrefix([1,2,3,4,5,6], a);
// Test arraybuffer.slice