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

Unified Diff: test/mjsunit/stack-traces.js

Issue 2190313002: Set Error.stack property writable (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: More test cases Created 4 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 | « test/mjsunit/regress/regress-5245.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/stack-traces.js
diff --git a/test/mjsunit/stack-traces.js b/test/mjsunit/stack-traces.js
index 2d770c2d36e8b1f4ede1e9b02ff30cb6aaea2476..9d9fd23ccfc7cdde7b649991536090f197ccedc3 100644
--- a/test/mjsunit/stack-traces.js
+++ b/test/mjsunit/stack-traces.js
@@ -386,9 +386,9 @@ var o = {};
Error.captureStackTrace(o);
assertEquals([], Object.keys(o));
var desc = Object.getOwnPropertyDescriptor(o, "stack");
-assertFalse(desc.writable);
assertFalse(desc.enumerable);
assertTrue(desc.configurable);
+assertTrue(desc.writable);
// Check that exceptions thrown within prepareStackTrace throws an exception.
Error.prepareStackTrace = function(e, frames) { throw 42; }
« no previous file with comments | « test/mjsunit/regress/regress-5245.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698