diff --git a/test/node_modules/duplicate_symbols/binding.cc b/test/node_modules/duplicate_symbols/binding.cc index bc5f6f5134..a0999b76dc 100644 --- a/test/node_modules/duplicate_symbols/binding.cc +++ b/test/node_modules/duplicate_symbols/binding.cc @@ -2,9 +2,9 @@ #include "common.h" void Init(v8::Local exports) { - exports->Set(Nan::New("pointerCheck").ToLocalChecked(), - Nan::New(Something::PointerCheck) - ->GetFunction()); + Nan::Set(exports, Nan::New("pointerCheck").ToLocalChecked(), + Nan::GetFunction( + Nan::New(Something::PointerCheck)).ToLocalChecked()); } NODE_MODULE(NODE_GYP_MODULE_NAME, Init) diff --git a/test/node_modules/duplicate_symbols/package.json b/test/node_modules/duplicate_symbols/package.json index ee21161cf1..2a193f230f 100644 --- a/test/node_modules/duplicate_symbols/package.json +++ b/test/node_modules/duplicate_symbols/package.json @@ -6,7 +6,7 @@ "private": true, "dependencies": { "bindings": "~1.2.1", - "nan": "^2.0.0" + "nan": "^2.14.0" }, "scripts": { "test": "node index.js"