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

Unified Diff: test/mjsunit/regress/regress-crbug-380671.js

Issue 1588013002: Robustify NewNumberFromSize against int-overflow on cast (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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 | « src/factory.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-crbug-380671.js
diff --git a/test/message/destructuring-modify-const.js b/test/mjsunit/regress/regress-crbug-380671.js
similarity index 57%
copy from test/message/destructuring-modify-const.js
copy to test/mjsunit/regress/regress-crbug-380671.js
index 88bda351d8e12ef06fd895e9617dee5829824440..891215e3010de91862c9c1b60a4f9e8fe232af11 100644
--- a/test/message/destructuring-modify-const.js
+++ b/test/mjsunit/regress/regress-crbug-380671.js
@@ -2,8 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Flags: --harmony-destructuring-bind
-'use strict';
+// Flags: --mock-arraybuffer-allocator
-const { x : x, y : y } = { x : 1, y : 2 };
-x++;
+var buffer = new ArrayBuffer(0xc0000000);
+assertEquals(0xc0000000, buffer.byteLength);
« no previous file with comments | « src/factory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698