| Index: Source/bindings/core/v8/ScriptFunctionCall.cpp
|
| diff --git a/Source/bindings/core/v8/ScriptFunctionCall.cpp b/Source/bindings/core/v8/ScriptFunctionCall.cpp
|
| index 0227be6dcb393365b3f14a395e28707435002d72..63e95db99f4f34d3d303931935c3c31a0ff1cfd5 100644
|
| --- a/Source/bindings/core/v8/ScriptFunctionCall.cpp
|
| +++ b/Source/bindings/core/v8/ScriptFunctionCall.cpp
|
| @@ -105,8 +105,8 @@ ScriptValue ScriptFunctionCall::call(bool& hadException, bool reportExceptions)
|
| tryCatch.SetVerbose(reportExceptions);
|
|
|
| v8::Local<v8::Object> thisObject = v8::Local<v8::Object>::Cast(m_thisObject.v8Value());
|
| - v8::Local<v8::Value> value = thisObject->Get(v8String(m_scriptState->isolate(), m_name));
|
| - if (tryCatch.HasCaught()) {
|
| + v8::Local<v8::Value> value;
|
| + if (!thisObject->Get(m_scriptState->context(), v8String(m_scriptState->isolate(), m_name)).ToLocal(&value)) {
|
| hadException = true;
|
| return ScriptValue();
|
| }
|
|
|