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

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

Issue 1958043002: Don't crash when load eval origin of a call site. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fixing regression test Created 4 years, 7 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/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-610207.js
diff --git a/test/mjsunit/regress/regress-crbug-599067.js b/test/mjsunit/regress/regress-crbug-610207.js
similarity index 54%
copy from test/mjsunit/regress/regress-crbug-599067.js
copy to test/mjsunit/regress/regress-crbug-610207.js
index bc10aa44c2f157c22183263e9602747a3482084b..4396a56a7714f863f2d0fa0ff3d20ae3dbab8906 100644
--- a/test/mjsunit/regress/regress-crbug-599067.js
+++ b/test/mjsunit/regress/regress-crbug-610207.js
@@ -2,10 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+Error.prepareStackTrace = function(exception, frames) {
+ return frames[0].getEvalOrigin();
+}
+
try {
- var o = {};
- var p = new Proxy({}, o);
- Error.captureStackTrace(p);
+ Realm.eval(0, "throw new Error('boom');");
} catch(e) {
- assertEquals("Cannot pass private property name to proxy trap", e.message);
+ print(e.stack);
}
« 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