summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2011-05-25 10:26:03 +0100
committerBen Murdoch <benm@google.com>2011-05-25 16:24:42 +0100
commite0cee9b3ed82e2391fd85d118aeaa4ea361c687d (patch)
tree31c7963cf0dfc88be29e765884e1f235076c03a4 /samples
parent1e0659c275bb392c045087af4f6b0d7565cb3d77 (diff)
downloadandroid_external_v8-e0cee9b3ed82e2391fd85d118aeaa4ea361c687d.tar.gz
android_external_v8-e0cee9b3ed82e2391fd85d118aeaa4ea361c687d.tar.bz2
android_external_v8-e0cee9b3ed82e2391fd85d118aeaa4ea361c687d.zip
Update V8 to r7079 as required by WebKit r80534.
Change-Id: I487c152e485d5a40b68997d7c0d2f1fba5da0834
Diffstat (limited to 'samples')
-rw-r--r--samples/shell.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/samples/shell.cc b/samples/shell.cc
index 6b67df6c..64f78f02 100644
--- a/samples/shell.cc
+++ b/samples/shell.cc
@@ -27,6 +27,7 @@
#include <v8.h>
#include <v8-testing.h>
+#include <assert.h>
#include <fcntl.h>
#include <string.h>
#include <stdio.h>
@@ -290,11 +291,13 @@ bool ExecuteString(v8::Handle<v8::String> source,
} else {
v8::Handle<v8::Value> result = script->Run();
if (result.IsEmpty()) {
+ assert(try_catch.HasCaught());
// Print errors that happened during execution.
if (report_exceptions)
ReportException(&try_catch);
return false;
} else {
+ assert(!try_catch.HasCaught());
if (print_result && !result->IsUndefined()) {
// If all went well and the result wasn't undefined then print
// the returned value.