Index: test/mjsunit/regress/regress-353004.js |
diff --git a/test/mjsunit/regress/regress-353004.js b/test/mjsunit/regress/regress-353004.js |
index 233a0f11d119fdfb75dbdf46a80f67a8fe01b2f4..7e1fb7e939e8b5c9cf59f01e84fe9d3316b2ac33 100644 |
--- a/test/mjsunit/regress/regress-353004.js |
+++ b/test/mjsunit/regress/regress-353004.js |
@@ -59,18 +59,18 @@ |
var buffer9 = new ArrayBuffer(1024); |
var array9 = new Uint8Array(buffer9); |
-assertThrows(() => |
- array9.subarray({valueOf : function() { |
+var array10 = array9.subarray({valueOf : function() { |
%ArrayBufferNeuter(buffer9); |
return 0; |
- }}, 1024), TypeError); |
+ }}, 1024); |
assertEquals(0, array9.length); |
+assertEquals(0, array10.length); |
var buffer11 = new ArrayBuffer(1024); |
var array11 = new Uint8Array(buffer11); |
-assertThrows(() => |
- array11.subarray(0, {valueOf : function() { |
- %ArrayBufferNeuter(buffer11); |
- return 1024; |
- }}), TypeError); |
+var array12 = array11.subarray(0, {valueOf : function() { |
+ %ArrayBufferNeuter(buffer11); |
+ return 1024; |
+ }}); |
assertEquals(0, array11.length); |
+assertEquals(0, array12.length); |