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

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

Issue 1844223004: Display a meaningfull error message when trying to capture a stack trace to a proxy. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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/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-599067.js
diff --git a/test/mjsunit/es6/tail-call-megatest-shard0.js b/test/mjsunit/regress/regress-crbug-599067.js
similarity index 53%
copy from test/mjsunit/es6/tail-call-megatest-shard0.js
copy to test/mjsunit/regress/regress-crbug-599067.js
index 87fe29e136257c9f4cbfd6550ab713f7f644df84..bc10aa44c2f157c22183263e9602747a3482084b 100644
--- a/test/mjsunit/es6/tail-call-megatest-shard0.js
+++ b/test/mjsunit/regress/regress-crbug-599067.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.
-// Flags: --allow-natives-syntax --harmony-tailcalls
-
try {
- load("mjsunit/es6/tail-call-megatest.js");
+ var o = {};
+ var p = new Proxy({}, o);
+ Error.captureStackTrace(p);
} catch(e) {
- load("test/mjsunit/es6/tail-call-megatest.js");
+ assertEquals("Cannot pass private property name to proxy trap", e.message);
}
-
-run_tests(0);
« no previous file with comments | « src/runtime/runtime-internal.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698