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

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

Issue 2307783002: Do not include Error.captureStackTrace in the trace (Closed)
Patch Set: Add test 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/isolate.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-5342.js
diff --git a/test/intl/regexp-prepare.js b/test/mjsunit/regress/regress-5342.js
similarity index 63%
copy from test/intl/regexp-prepare.js
copy to test/mjsunit/regress/regress-5342.js
index dec84110ed02e30bba674538534a069f7d43d39d..8cdd808622a0c73c63d41f19d54cce51d9726d0a 100644
--- a/test/intl/regexp-prepare.js
+++ b/test/mjsunit/regress/regress-5342.js
@@ -2,4 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-/(\w)(\w)(\w)(\w)(\w)(\w)(\w)(\w)(\w)(\w)/.exec(">>>abcdefghij<<<");
+var o = {}
+Error.captureStackTrace(o);
+assertEquals(-1, o.stack.indexOf("captureStackTrace"));
« no previous file with comments | « src/isolate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698