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

Unified Diff: src/builtins/builtins-error.cc

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 | « no previous file | test/mjsunit/regress/regress-5245.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/builtins/builtins-error.cc
diff --git a/src/builtins/builtins-error.cc b/src/builtins/builtins-error.cc
index ae294f7f85c5c40be37530a0d52a615672614566..3176f13f21307db5b6c499893aa3e468d3922d3e 100644
--- a/src/builtins/builtins-error.cc
+++ b/src/builtins/builtins-error.cc
@@ -53,6 +53,7 @@ BUILTIN(ErrorCaptureStackTrace) {
PropertyDescriptor desc;
desc.set_configurable(true);
+ desc.set_writable(true);
desc.set_value(formatted_stack_trace);
Maybe<bool> status = JSReceiver::DefineOwnProperty(
isolate, object, isolate->factory()->stack_string(), &desc,
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-5245.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698