Commit 96a9db16 authored by Andreas Haas's avatar Andreas Haas Committed by Commit Bot

[cleanup][v8] Replace uses of deprecated API

Bug: v8:7294 v8:8015
Change-Id: I698f6fd6312dad6d27924d8c000375f4bcd0455f
Reviewed-on: https://chromium-review.googlesource.com/1238538Reviewed-by: default avatarDevlin <rdevlin.cronin@chromium.org>
Commit-Queue: Andreas Haas <ahaas@chromium.org>
Cr-Commit-Position: refs/heads/master@{#594635}
parent deeaf512
......@@ -51,7 +51,8 @@ v8::Local<v8::Object> ObjectBackedNativeHandler::NewInstance() {
DCHECK_EQ(kInitialized, init_state_)
<< "Initialize() must be called before a new instance is created!";
return v8::Local<v8::ObjectTemplate>::New(GetIsolate(), object_template_)
->NewInstance();
->NewInstance(GetIsolate()->GetCurrentContext())
.ToLocalChecked();
}
// static
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment