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

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

Issue 2146353002: [stubs] Properly handle length overflow in StringAddStub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Throw a proper RangeError Created 4 years, 5 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
« src/crankshaft/hydrogen.cc ('K') | « src/runtime/runtime-internal.cc ('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-627934.js
diff --git a/test/mjsunit/regress/regress-crbug-600257.js b/test/mjsunit/regress/regress-crbug-627934.js
similarity index 62%
copy from test/mjsunit/regress/regress-crbug-600257.js
copy to test/mjsunit/regress/regress-crbug-627934.js
index 87bd2e39af387cde81f9c9adb15756f8139a03a3..242dc4a78ec8bb94b317fa1d5c8caf76d4fed04f 100644
--- a/test/mjsunit/regress/regress-crbug-600257.js
+++ b/test/mjsunit/regress/regress-crbug-627934.js
@@ -2,12 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Flags: --stack-size=100
-
-(function rec() {
+var x = "1".repeat(32 * 1024 * 1024);
+for (var z = x;;) {
try {
- rec();
+ z += {toString: function() { return x; }};
} catch (e) {
- /{/;
+ break;
}
-})();
+}
« src/crankshaft/hydrogen.cc ('K') | « src/runtime/runtime-internal.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698