summaryrefslogtreecommitdiff
path: root/deps/v8/samples/shell.cc
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-05-21 09:41:50 -0700
committerRyan Dahl <ry@tinyclouds.org>2010-05-21 09:41:50 -0700
commit2b34363d03e0718c9e9f39982c723b806558c759 (patch)
tree0388b89e7794e3aa7c9ee2e923570cca56c7def9 /deps/v8/samples/shell.cc
parent9514a4d5476225e8c8310ce5acae2857033bcaaa (diff)
downloadandroid-node-v8-2b34363d03e0718c9e9f39982c723b806558c759.tar.gz
android-node-v8-2b34363d03e0718c9e9f39982c723b806558c759.tar.bz2
android-node-v8-2b34363d03e0718c9e9f39982c723b806558c759.zip
Upgrade V8 to 2.2.11
Diffstat (limited to 'deps/v8/samples/shell.cc')
-rw-r--r--deps/v8/samples/shell.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/deps/v8/samples/shell.cc b/deps/v8/samples/shell.cc
index 27ed293e7e..1a13f5f80b 100644
--- a/deps/v8/samples/shell.cc
+++ b/deps/v8/samples/shell.cc
@@ -299,5 +299,10 @@ void ReportException(v8::TryCatch* try_catch) {
printf("^");
}
printf("\n");
+ v8::String::Utf8Value stack_trace(try_catch->StackTrace());
+ if (stack_trace.length() > 0) {
+ const char* stack_trace_string = ToCString(stack_trace);
+ printf("%s\n", stack_trace_string);
+ }
}
}