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

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

Issue 753983002: Fix RegExp.source for uncompiled regexp. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years, 1 month 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/accessors.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-435825.js
diff --git a/test/mjsunit/serialize-embedded-error.js b/test/mjsunit/regress/regress-crbug-435825.js
similarity index 58%
copy from test/mjsunit/serialize-embedded-error.js
copy to test/mjsunit/regress/regress-crbug-435825.js
index 473c931b305d54dd45c01b21b8edead15a5d3b19..e10b812d4d8ea9a7cdca9687b567b3cb500c2591 100644
--- a/test/mjsunit/serialize-embedded-error.js
+++ b/test/mjsunit/regress/regress-crbug-435825.js
@@ -2,12 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// --serialize-toplevel --cache=code
+Error.prepareStackTrace = function (a,b) { return b; };
-var caught = false;
try {
- parseInt() = 0;
-} catch(e) {
- caught = true;
+ /(invalid regexp/;
+} catch (e) {
+ e.stack[0].getThis().toString();
}
-assertTrue(caught);
« no previous file with comments | « src/accessors.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698