From 5da5d8a6fa11e98eb5577d903b6d4b3f24698b1c Mon Sep 17 00:00:00 2001 From: xzyfer Date: Sat, 30 Apr 2016 19:15:23 +1000 Subject: [PATCH] Revert "Fix final Node 6 deprecation warnings" This reverts commit beb5c746cd9cad528e9d800f1071d486d81558e9. --- src/callback_bridge.h | 2 +- src/sass_types/boolean.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/callback_bridge.h b/src/callback_bridge.h index 2d6cb92f0..cf749c1b8 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::New(ReturnCallback) + Nan::GetFunction(Nan::New(ReturnCallback)).ToLocalChecked() ); wrapper_constructor.Reset(Nan::GetFunction(tpl).ToLocalChecked()); diff --git a/src/sass_types/boolean.cpp b/src/sass_types/boolean.cpp index 401ed14fb..61e2879c2 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::New(GetValue)); + Nan::SetPrototypeTemplate(tpl, "getValue", Nan::GetFunction(Nan::New(GetValue)).ToLocalChecked()); conslocal = Nan::GetFunction(tpl).ToLocalChecked(); constructor.Reset(conslocal);