| 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 de005ed40850946fc9e65b1f77cc63d04b2309a0..e891094f2d025cd884804168baa9c674b17a21d4 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);
|
| }
|
|
|
|
|