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

Unified Diff: src/bootstrapper.cc

Issue 151145: Experimental: capture 10 frame stack trace by default. (Closed)
Patch Set: Created 11 years, 6 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 | src/flag-definitions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/bootstrapper.cc
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
index ffd432a68546f73dcd551a46999216960b052364..a7e6adb7912a726f04d77f4ac56d9c5087c78aff 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -1213,15 +1213,13 @@ bool Genesis::InstallSpecialObjects() {
Handle<JSObject>(js_global->builtins()), DONT_ENUM);
}
- if (FLAG_capture_stack_traces) {
- Handle<Object> Error = GetProperty(js_global, "Error");
- if (Error->IsJSObject()) {
- Handle<String> name = Factory::LookupAsciiSymbol("captureStackTraces");
- SetProperty(Handle<JSObject>::cast(Error),
- name,
- Factory::true_value(),
- NONE);
- }
+ Handle<Object> Error = GetProperty(js_global, "Error");
+ if (Error->IsJSObject()) {
+ Handle<String> name = Factory::LookupAsciiSymbol("stackTraceLimit");
+ SetProperty(Handle<JSObject>::cast(Error),
+ name,
+ Handle<Smi>(Smi::FromInt(FLAG_stack_trace_limit)),
+ NONE);
}
#ifdef ENABLE_DEBUGGER_SUPPORT
« no previous file with comments | « no previous file | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698