| Index: third_party/WebKit/Source/bindings/core/v8/V8Binding.h
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/V8Binding.h b/third_party/WebKit/Source/bindings/core/v8/V8Binding.h
|
| index cb32c6894f67f6632d37c0b0011a89f453da8e84..eabb4a2d8a8b1715e598c50351c53f928afd5af7 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/V8Binding.h
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/V8Binding.h
|
| @@ -908,7 +908,7 @@ v8::Local<v8::Function> getBoundFunction(v8::Local<v8::Function>);
|
| // Attaches |environment| to |function| and returns it.
|
| inline v8::Local<v8::Function> createClosure(v8::FunctionCallback function, v8::Local<v8::Value> environment, v8::Isolate* isolate)
|
| {
|
| - return v8::Function::New(isolate, function, environment);
|
| + return v8::Function::New(isolate->GetCurrentContext(), function, environment, 0, v8::ConstructorBehavior::kThrow).ToLocalChecked();
|
| }
|
|
|
| // FIXME: This will be soon embedded in the generated code.
|
|
|