Chromium Code Reviews| Index: third_party/WebKit/Source/bindings/core/v8/V8ErrorHandler.cpp |
| diff --git a/third_party/WebKit/Source/bindings/core/v8/V8ErrorHandler.cpp b/third_party/WebKit/Source/bindings/core/v8/V8ErrorHandler.cpp |
| index 841bafc2bbf6b8f22030cf4a17682e62d5252588..5002aee0033d7c2f5b410ae766757f783c15e849 100644 |
| --- a/third_party/WebKit/Source/bindings/core/v8/V8ErrorHandler.cpp |
| +++ b/third_party/WebKit/Source/bindings/core/v8/V8ErrorHandler.cpp |
| @@ -61,6 +61,8 @@ v8::Local<v8::Value> V8ErrorHandler::callListenerFunction( |
| v8::Local<v8::Function> callFunction = |
| v8::Local<v8::Function>::Cast(listener); |
| + ScriptStateForErrorEvent scope(callFunction->CreationContext()); |
|
haraken
2016/11/02 01:40:18
Add a comment about what this is doing.
Yuki
2016/11/02 07:32:43
nit: Avoid a general name "scope", which could be
|
| + |
| v8::Local<v8::Object> thisValue = scriptState->context()->Global(); |
| v8::Local<v8::Object> eventObject; |