| Index: third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp
|
| diff --git a/third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp b/third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp
|
| index b3eaf41bc6137eaad03e5f6c276d6daf2e96a939..e668094914da9a8c892173d5f8b10c55ec1cdef4 100644
|
| --- a/third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp
|
| +++ b/third_party/WebKit/Source/platform/v8_inspector/InjectedScript.cpp
|
| @@ -182,7 +182,7 @@ v8::MaybeLocal<v8::Value> InjectedScript::wrapValue(ErrorString* errorString, v8
|
| function.appendArgument(generatePreview);
|
| bool hadException = false;
|
| v8::Local<v8::Value> r = callFunctionWithEvalEnabled(function, hadException);
|
| - if (hasInternalError(errorString, hadException))
|
| + if (hasInternalError(errorString, hadException || r.IsEmpty()))
|
| return v8::MaybeLocal<v8::Value>();
|
| return r;
|
| }
|
|
|