diff --git a/.travis.yml b/.travis.yml index 6a774c4..f7a7544 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,6 +21,7 @@ env: - export NODE_VERSION="4" - export NODE_VERSION="5" - export NODE_VERSION="6" + - export NODE_VERSION="7" global: - node_pre_gyp_region="eu-central-1" diff --git a/appveyor.yml b/appveyor.yml index eb3ce33..11ae3e8 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -5,6 +5,10 @@ environment: secure: jJxKoyWputzRz2EjAT9i/vBzYt2+lcjKZ5D6O5TBaS9+anpYHn2XWbOut5dkOgh0 node_pre_gyp_region: eu-central-1 matrix: + - NODE_VERSION: 7 + platform: x64 + - NODE_VERSION: 7 + platform: x86 - NODE_VERSION: 6 platform: x64 - NODE_VERSION: 6 diff --git a/binding.gyp b/binding.gyp index ba0425b..01fe42e 100644 --- a/binding.gyp +++ b/binding.gyp @@ -2,7 +2,7 @@ 'targets': [ { 'target_name': 'profiler', - 'win_delay_load_hook': 'true', + 'win_delay_load_hook': 'false', 'sources': [ 'src/profiler.cc', 'src/cpu_profiler.cc', diff --git a/package.json b/package.json index 6557fb9..fb11fab 100644 --- a/package.json +++ b/package.json @@ -34,8 +34,8 @@ }, "main": "v8-profiler", "dependencies": { - "nan": "^2.3.2", - "node-pre-gyp": "^0.6.5" + "nan": "^2.5.1", + "node-pre-gyp": "^0.6.34" }, "devDependencies": { "aws-sdk": "^2.0.0", diff --git a/src/heap_snapshot.cc b/src/heap_snapshot.cc index f4e6873..aab70da 100644 --- a/src/heap_snapshot.cc +++ b/src/heap_snapshot.cc @@ -18,7 +18,6 @@ namespace nodex { using v8::Function; using v8::Value; - Nan::Persistent Snapshot::snapshot_template_; Nan::Persistent Snapshot::snapshots; @@ -43,11 +42,13 @@ namespace nodex { Local _root; Local __root = Nan::New("_root").ToLocalChecked(); if (info.This()->Has(__root)) { - info.GetReturnValue().Set(info.This()->GetHiddenValue(__root)); + Local root; + Nan::GetPrivate(info.This(), __root).ToLocal(&root); + info.GetReturnValue().Set(root); } else { void* ptr = Nan::GetInternalFieldPointer(info.This(), 0); Local _root = GraphNode::New(static_cast(ptr)->GetRoot()); - info.This()->SetHiddenValue(__root, _root); + Nan::SetPrivate(info.This(), __root, _root); info.GetReturnValue().Set(_root); } }