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); |