Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit ff17933

Browse files
committed
Fix final Node 6 deprecation warnings (#1498)
This was partially addressed by bumping NAN in #1496. nodejs/node#6216 https://codereview.chromium.org/1839983002/patch/1/10002 Fixes #1484
1 parent b0e1e1b commit ff17933

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/callback_bridge.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ Nan::MaybeLocal<v8::Function> CallbackBridge<T, L>::get_wrapper_constructor() {
203203
tpl->InstanceTemplate()->SetInternalFieldCount(1);
204204

205205
Nan::SetPrototypeTemplate(tpl, "success",
206-
Nan::GetFunction(Nan::New<v8::FunctionTemplate>(ReturnCallback)).ToLocalChecked()
206+
Nan::New<v8::FunctionTemplate>(ReturnCallback)
207207
);
208208

209209
wrapper_constructor.Reset(Nan::GetFunction(tpl).ToLocalChecked());

src/sass_types/boolean.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace SassTypes
2121

2222
tpl->SetClassName(Nan::New("SassBoolean").ToLocalChecked());
2323
tpl->InstanceTemplate()->SetInternalFieldCount(1);
24-
Nan::SetPrototypeTemplate(tpl, "getValue", Nan::GetFunction(Nan::New<v8::FunctionTemplate>(GetValue)).ToLocalChecked());
24+
Nan::SetPrototypeTemplate(tpl, "getValue", Nan::New<v8::FunctionTemplate>(GetValue));
2525

2626
conslocal = Nan::GetFunction(tpl).ToLocalChecked();
2727
constructor.Reset(conslocal);

0 commit comments

Comments
 (0)