| Index: Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp
|
| diff --git a/Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp b/Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp
|
| index 8f4b24b91b85e249b3db308382fdd8b8799a6726..596d8c1cb78f5e971af32f20303f95092db3ac28 100644
|
| --- a/Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp
|
| +++ b/Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp
|
| @@ -74,15 +74,12 @@ Node* InjectedScriptHost::scriptValueAsNode(ScriptValue value)
|
|
|
| ScriptValue InjectedScriptHost::nodeAsScriptValue(ScriptState* scriptState, Node* node)
|
| {
|
| + ScriptState::Scope scope(scriptState);
|
| v8::Isolate* isolate = scriptState->isolate();
|
| - v8::HandleScope scope(isolate);
|
| - v8::Local<v8::Context> context = scriptState->context();
|
| - v8::Context::Scope contextScope(context);
|
| -
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "nodeAsScriptValue", "InjectedScriptHost", context->Global(), isolate);
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "nodeAsScriptValue", "InjectedScriptHost", scriptState->context()->Global(), isolate);
|
| if (!BindingSecurity::shouldAllowAccessToNode(isolate, node, exceptionState))
|
| return ScriptValue(scriptState, v8::Null(isolate));
|
| - return ScriptValue(scriptState, toV8(node, context->Global(), isolate));
|
| + return ScriptValue(scriptState, toV8(node, scriptState->context()->Global(), isolate));
|
| }
|
|
|
| void V8InjectedScriptHost::inspectedObjectMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info)
|
|
|