Commit ff179332 by Michael Mifsud

Fix final Node 6 deprecation warnings (#1498)

This was partially addressed by bumping NAN in #1496.

https://github.com/nodejs/node/issues/6216
https://codereview.chromium.org/1839983002/patch/1/10002

Fixes #1484
parent b0e1e1bf
...@@ -203,7 +203,7 @@ Nan::MaybeLocal<v8::Function> CallbackBridge<T, L>::get_wrapper_constructor() { ...@@ -203,7 +203,7 @@ Nan::MaybeLocal<v8::Function> CallbackBridge<T, L>::get_wrapper_constructor() {
tpl->InstanceTemplate()->SetInternalFieldCount(1); tpl->InstanceTemplate()->SetInternalFieldCount(1);
Nan::SetPrototypeTemplate(tpl, "success", Nan::SetPrototypeTemplate(tpl, "success",
Nan::GetFunction(Nan::New<v8::FunctionTemplate>(ReturnCallback)).ToLocalChecked() Nan::New<v8::FunctionTemplate>(ReturnCallback)
); );
wrapper_constructor.Reset(Nan::GetFunction(tpl).ToLocalChecked()); wrapper_constructor.Reset(Nan::GetFunction(tpl).ToLocalChecked());
......
...@@ -21,7 +21,7 @@ namespace SassTypes ...@@ -21,7 +21,7 @@ namespace SassTypes
tpl->SetClassName(Nan::New("SassBoolean").ToLocalChecked()); tpl->SetClassName(Nan::New("SassBoolean").ToLocalChecked());
tpl->InstanceTemplate()->SetInternalFieldCount(1); 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(); conslocal = Nan::GetFunction(tpl).ToLocalChecked();
constructor.Reset(conslocal); constructor.Reset(conslocal);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment