aboutsummaryrefslogtreecommitdiff
path: root/src/node_http2.cc
diff options
context:
space:
mode:
authorAndreas Haas <ahaas@google.com>2018-09-21 13:13:35 +0200
committerDaniel Bevenius <daniel.bevenius@gmail.com>2018-09-24 05:44:28 +0200
commit7dde560beb736e82b7867130a2d5824544122a60 (patch)
treec34d8cdc7be51ceee11ed3160e49acd1270319de /src/node_http2.cc
parenta0c1326257b9679b056d8611ccdee2d6757b0bf0 (diff)
downloadandroid-node-v8-7dde560beb736e82b7867130a2d5824544122a60.tar.gz
android-node-v8-7dde560beb736e82b7867130a2d5824544122a60.tar.bz2
android-node-v8-7dde560beb736e82b7867130a2d5824544122a60.zip
src: replace deprecated uses of FunctionTemplate::GetFunction
PR-URL: https://github.com/nodejs/node/pull/22993 Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_http2.cc')
-rw-r--r--src/node_http2.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_http2.cc b/src/node_http2.cc
index 7dc695ba79..9a0cc4ae19 100644
--- a/src/node_http2.cc
+++ b/src/node_http2.cc
@@ -2987,7 +2987,7 @@ void Initialize(Local<Object> target,
env->set_http2stream_constructor_template(streamt);
target->Set(context,
FIXED_ONE_BYTE_STRING(env->isolate(), "Http2Stream"),
- stream->GetFunction()).FromJust();
+ stream->GetFunction(env->context()).ToLocalChecked()).FromJust();
Local<FunctionTemplate> session =
env->NewFunctionTemplate(Http2Session::New);
@@ -3015,7 +3015,7 @@ void Initialize(Local<Object> target,
Http2Session::RefreshSettings<nghttp2_session_get_remote_settings>);
target->Set(context,
http2SessionClassName,
- session->GetFunction()).FromJust();
+ session->GetFunction(env->context()).ToLocalChecked()).FromJust();
Local<Object> constants = Object::New(isolate);
Local<Array> name_for_error_code = Array::New(isolate);