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

Unified Diff: src/d8-console.cc

Issue 2840853002: Revert of [d8] console methods must not throw. (Closed)
Patch Set: Created 3 years, 8 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 | « src/builtins/builtins-console.cc ('k') | test/message/console.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/d8-console.cc
diff --git a/src/d8-console.cc b/src/d8-console.cc
index e4f81b3c2df3fc37ce1e3adc7e9564e6175658ef..9e0d244e780cc09a5dc23d611f7731702e62a543 100644
--- a/src/d8-console.cc
+++ b/src/d8-console.cc
@@ -21,7 +21,7 @@
if (arg->IsSymbol()) arg = Local<Symbol>::Cast(arg)->Name();
if (!arg->ToString(isolate->GetCurrentContext()).ToLocal(&str_obj)) {
- Shell::ReportException(isolate, &try_catch);
+ try_catch.ReThrow();
return;
}
@@ -68,7 +68,7 @@
Local<String> label;
v8::TryCatch try_catch(isolate_);
if (!arg->ToString(isolate_->GetCurrentContext()).ToLocal(&label)) {
- Shell::ReportException(isolate_, &try_catch);
+ try_catch.ReThrow();
return;
}
v8::String::Utf8Value utf8(label);
@@ -94,7 +94,7 @@
Local<String> label;
v8::TryCatch try_catch(isolate_);
if (!arg->ToString(isolate_->GetCurrentContext()).ToLocal(&label)) {
- Shell::ReportException(isolate_, &try_catch);
+ try_catch.ReThrow();
return;
}
v8::String::Utf8Value utf8(label);
« no previous file with comments | « src/builtins/builtins-console.cc ('k') | test/message/console.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698