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

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

Issue 2377983002: Allow empty first parts of ConsStrings (Closed)
Patch Set: Created 4 years, 3 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/objects.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-5440.js
diff --git a/test/mjsunit/regress/regress-crbug-644631.js b/test/mjsunit/regress/regress-5440.js
similarity index 61%
copy from test/mjsunit/regress/regress-crbug-644631.js
copy to test/mjsunit/regress/regress-5440.js
index 5e649a49463791f960bc635f207c3ab69d3b2169..4182146b1a4f00e90895a8fbabab754e986b0b8c 100644
--- a/test/mjsunit/regress/regress-crbug-644631.js
+++ b/test/mjsunit/regress/regress-5440.js
@@ -4,9 +4,5 @@
// Flags: --turbo --always-opt
-function f() {
- new Int8Array(new ArrayBuffer(2147483648));
-}
-
-// Should not crash
-assertThrows(f, RangeError);
+// The rightmost cons string is created first, resulting in an empty left part.
+eval(" " + ("" + "try {;} catch (_) {}"));
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698