diff options
Diffstat (limited to 'src/tty_wrap.cc')
-rw-r--r-- | src/tty_wrap.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tty_wrap.cc b/src/tty_wrap.cc index 8151ba02a2a..e7b684a7eeb 100644 --- a/src/tty_wrap.cc +++ b/src/tty_wrap.cc @@ -63,7 +63,7 @@ void TTYWrap::Initialize(Local<Object> target, env->SetMethodNoSideEffect(target, "isTTY", IsTTY); env->SetMethodNoSideEffect(target, "guessHandleType", GuessHandleType); - target->Set(ttyString, t->GetFunction()); + target->Set(ttyString, t->GetFunction(env->context()).ToLocalChecked()); env->set_tty_constructor_template(t); } |