Skip to content
Prev Previous commit
Next Next commit
Update node_crypto.cc to match current master
  • Loading branch information
SirAnthony authored Oct 9, 2018
commit 9b6808547b5a2ac12befcdc7dbcd8da8a3e44b99
3 changes: 2 additions & 1 deletion src/node_crypto.cc
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,8 @@ void SecureContext::Initialize(Environment* env, Local<Object> target) {
Local<FunctionTemplate>(),
static_cast<PropertyAttribute>(ReadOnly | DontDelete));

target->Set(secureContextString, t->GetFunction());
target->Set(secureContextString,
t->GetFunction(env->context()).ToLocalChecked());
env->set_secure_context_constructor_template(t);
}

Expand Down