diff options
author | Ben Murdoch <benm@google.com> | 2011-05-25 10:26:03 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2011-05-25 16:24:42 +0100 |
commit | e0cee9b3ed82e2391fd85d118aeaa4ea361c687d (patch) | |
tree | 31c7963cf0dfc88be29e765884e1f235076c03a4 /samples | |
parent | 1e0659c275bb392c045087af4f6b0d7565cb3d77 (diff) | |
download | android_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.cc | 3 |
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. |