Commit e0348dc7 authored by jkummerow's avatar jkummerow Committed by Commit bot

[d8] Fix Shell::Stringify when exceptions are thrown.

BUG=v8:5105

Review-Url: https://codereview.chromium.org/2126693003
Cr-Commit-Position: refs/heads/master@{#37553}
parent a182588d
......@@ -1088,8 +1088,7 @@ Local<String> Shell::Stringify(Isolate* isolate, Local<Value> value) {
Local<Function> fun = Local<Function>::New(isolate, stringify_function_);
Local<Value> argv[1] = {value};
v8::TryCatch try_catch(isolate);
MaybeLocal<Value> result =
fun->Call(context, Undefined(isolate), 1, argv).ToLocalChecked();
MaybeLocal<Value> result = fun->Call(context, Undefined(isolate), 1, argv);
if (result.IsEmpty()) return String::Empty(isolate);
return result.ToLocalChecked().As<String>();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment