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

Unified Diff: test/mjsunit/es6/typedarray-reverse.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-reduce.js ('k') | test/mjsunit/es6/typedarray-slice.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/es6/typedarray-reverse.js
diff --git a/test/mjsunit/es6/typedarray-reverse.js b/test/mjsunit/es6/typedarray-reverse.js
index bfeb227c5c4128050d702a7434d0d044076e150f..f32813e155db16da0d0e8ebbba142c24b02015a6 100644
--- a/test/mjsunit/es6/typedarray-reverse.js
+++ b/test/mjsunit/es6/typedarray-reverse.js
@@ -1,8 +1,6 @@
// Copyright 2015 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-
-// Flags: --allow-natives-syntax
function ArrayMaker(x) {
return x;
@@ -53,11 +51,4 @@
}
assertEquals(0, a.reverse.length);
-
- // Detached Operation
- if (constructor != ArrayMaker) {
- var array = new constructor([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]);
- %ArrayBufferNeuter(array.buffer);
- assertThrows(() => array.reverse(), TypeError);
- }
}
« no previous file with comments | « test/mjsunit/es6/typedarray-reduce.js ('k') | test/mjsunit/es6/typedarray-slice.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698