diff --git a/src/callback_bridge.h b/src/callback_bridge.h index cf749c1b8..2d6cb92f0 100644 --- a/src/callback_bridge.h +++ b/src/callback_bridge.h @@ -203,7 +203,7 @@ Nan::MaybeLocal CallbackBridge::get_wrapper_constructor() { tpl->InstanceTemplate()->SetInternalFieldCount(1); Nan::SetPrototypeTemplate(tpl, "success", - Nan::GetFunction(Nan::New(ReturnCallback)).ToLocalChecked() + Nan::New(ReturnCallback) ); wrapper_constructor.Reset(Nan::GetFunction(tpl).ToLocalChecked()); diff --git a/src/sass_types/boolean.cpp b/src/sass_types/boolean.cpp index 61e2879c2..401ed14fb 100644 --- a/src/sass_types/boolean.cpp +++ b/src/sass_types/boolean.cpp @@ -21,7 +21,7 @@ namespace SassTypes tpl->SetClassName(Nan::New("SassBoolean").ToLocalChecked()); tpl->InstanceTemplate()->SetInternalFieldCount(1); - Nan::SetPrototypeTemplate(tpl, "getValue", Nan::GetFunction(Nan::New(GetValue)).ToLocalChecked()); + Nan::SetPrototypeTemplate(tpl, "getValue", Nan::New(GetValue)); conslocal = Nan::GetFunction(tpl).ToLocalChecked(); constructor.Reset(conslocal);