Index: samples/shell.cc |
diff --git a/samples/shell.cc b/samples/shell.cc |
index 27ed293e7ec6e68ee673d1f0b0b8ed9158489023..1a13f5f80bff11979c5fdf55cbdebc888ca36825 100644 |
--- a/samples/shell.cc |
+++ b/samples/shell.cc |
@@ -299,5 +299,10 @@ void ReportException(v8::TryCatch* try_catch) { |
printf("^"); |
} |
printf("\n"); |
+ v8::String::Utf8Value stack_trace(try_catch->StackTrace()); |
antonm
2010/05/14 09:49:07
won't it be too verbose? maybe hide it behind a f
Vitaly Repeshko
2010/05/14 09:59:21
When used in our tests this reports failures so ho
|
+ if (stack_trace.length() > 0) { |
+ const char* stack_trace_string = ToCString(stack_trace); |
+ printf("%s\n", stack_trace_string); |
+ } |
} |
} |