Commit c0715d30 authored by Andreas Haas's avatar Andreas Haas Committed by Commit Bot

[cleanup][v8] Replace uses of deprecated API

R=mcilroy@chromium.org

Bug: v8:7295 v8:8015
Change-Id: I5de6e97a1e1ede6da0dc678579685bf5161abd35
Reviewed-on: https://chromium-review.googlesource.com/1237674Reviewed-by: default avatarRoss McIlroy <rmcilroy@chromium.org>
Commit-Queue: Andreas Haas <ahaas@chromium.org>
Cr-Commit-Position: refs/heads/master@{#595015}
parent 660e3c77
......@@ -39,7 +39,10 @@ class MyInterceptor : public Wrappable<MyInterceptor>,
if (property == "value") {
return ConvertToV8(isolate, value_);
} else if (property == "func") {
return GetFunctionTemplate(isolate, "func")->GetFunction();
v8::Local<v8::Context> context = isolate->GetCurrentContext();
return GetFunctionTemplate(isolate, "func")
->GetFunction(context)
.ToLocalChecked();
} else {
return v8::Local<v8::Value>();
}
......
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