Skip to content

Commit

Permalink
Update node_crypto.cc to match current master
Browse files Browse the repository at this point in the history
  • Loading branch information
SirAnthony authored Oct 9, 2018
1 parent c263367 commit 9b68085
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit 9b68085

Please sign in to comment.