| Index: Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp
|
| diff --git a/Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp b/Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp
|
| index be34a8baa9402ebd2691c3787903aa79108da012..6a348b54c3f69c1529d53d9b94ecd5e4cd92d2df 100644
|
| --- a/Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp
|
| +++ b/Source/bindings/core/v8/custom/V8InjectedScriptManager.cpp
|
| @@ -109,7 +109,9 @@ ScriptValue InjectedScriptManager::createInjectedScript(const String& scriptSour
|
|
|
| v8::Local<v8::Object> windowGlobal = inspectedScriptState->context()->Global();
|
| v8::Local<v8::Value> info[] = { scriptHostWrapper, windowGlobal, v8::Number::New(inspectedScriptState->isolate(), id) };
|
| - v8::Local<v8::Value> injectedScriptValue = V8ScriptRunner::callInternalFunction(v8::Local<v8::Function>::Cast(value), windowGlobal, WTF_ARRAY_LENGTH(info), info, inspectedScriptState->isolate());
|
| + v8::Local<v8::Value> injectedScriptValue;
|
| + if (!V8ScriptRunner::callInternalFunction(v8::Local<v8::Function>::Cast(value), windowGlobal, WTF_ARRAY_LENGTH(info), info, inspectedScriptState->isolate()).ToLocal(&injectedScriptValue))
|
| + return ScriptValue();
|
| return ScriptValue(inspectedScriptState, injectedScriptValue);
|
| }
|
|
|
|
|