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

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

Issue 396063008: Error.captureStackTrace should define "stack" property as configurable. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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/messages.js ('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-393988.js
diff --git a/test/mjsunit/harmony/regress/regress-3426.js b/test/mjsunit/regress/regress-crbug-393988.js
similarity index 59%
copy from test/mjsunit/harmony/regress/regress-3426.js
copy to test/mjsunit/regress/regress-crbug-393988.js
index c3b11a1792f8c8adaf05788d9604a2c9c9f5dcde..9543e1e4c4aaed07c9a5743500f004ca3c677a10 100644
--- a/test/mjsunit/harmony/regress/regress-3426.js
+++ b/test/mjsunit/regress/regress-crbug-393988.js
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Flags: --harmony-scoping
-
-assertThrows("(function() { 'use strict'; { let f; var f; } })", SyntaxError);
+var o = {};
+Error.captureStackTrace(o);
+Object.defineProperty(o, "stack", { value: 1 });
+assertEquals(1, o.stack);
« no previous file with comments | « src/messages.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698