Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(320)

Unified Diff: test/mjsunit/regress/regress-353004.js

Issue 2793233003: Revert of [typedarrays] Check detached buffer at start of typed array methods (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/mjsunit/es6/typedarray-tostring.js ('k') | test/mjsunit/regress/regress-4665.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « test/mjsunit/es6/typedarray-tostring.js ('k') | test/mjsunit/regress/regress-4665.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698