Skip to content

Commit

Permalink
Fix final Node 6 deprecation warnings (#1498)
Browse files Browse the repository at this point in the history
This was partially addressed by bumping NAN in #1496.

nodejs/node#6216
https://codereview.chromium.org/1839983002/patch/1/10002

Fixes #1484
  • Loading branch information
xzyfer committed Apr 28, 2016
1 parent b0e1e1b commit ff17933
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/callback_bridge.h
Expand Up @@ -203,7 +203,7 @@ Nan::MaybeLocal<v8::Function> CallbackBridge<T, L>::get_wrapper_constructor() {
tpl->InstanceTemplate()->SetInternalFieldCount(1);

Nan::SetPrototypeTemplate(tpl, "success",
Nan::GetFunction(Nan::New<v8::FunctionTemplate>(ReturnCallback)).ToLocalChecked()
Nan::New<v8::FunctionTemplate>(ReturnCallback)
);

wrapper_constructor.Reset(Nan::GetFunction(tpl).ToLocalChecked());
Expand Down
2 changes: 1 addition & 1 deletion src/sass_types/boolean.cpp
Expand Up @@ -21,7 +21,7 @@ namespace SassTypes

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

conslocal = Nan::GetFunction(tpl).ToLocalChecked();
constructor.Reset(conslocal);
Expand Down

0 comments on commit ff17933

Please sign in to comment.