diff --git a/package.json b/package.json index 513430d..e1a35ce 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "byte", "64" ], - "version": "2.0.0", + "version": "2.0.1", "license": "MIT", "author": "Nathan Rajlich (http://tootallnate.net)", "repository": { @@ -30,16 +30,8 @@ "test": "mocha --gc-global --expose-gc --reporter spec --use_strict" }, "dependencies": { - "bindings": "1", - "debug": "4", - "nan": "2" - }, - "devDependencies": { - "dox": "0.9.0", - "highlight.js": "9", - "jade": "1", - "marked": "0.6.2", - "mocha": "*", - "weak": "github:lxe/node-weak#node-12" + "bindings": "^1.5.0", + "debug": "*", + "nan": "^2.13.2" } } diff --git a/src/binding.cc b/src/binding.cc index 35d62cf..8e35499 100644 --- a/src/binding.cc +++ b/src/binding.cc @@ -219,7 +219,7 @@ NAN_METHOD(WriteObject) { Nan::Persistent* pptr = reinterpret_cast*>(ptr); Local val = info[2].As(); - bool persistent = info[3]->BooleanValue(v8::Isolate::GetCurrent()->GetCurrentContext()).ToChecked(); + bool persistent = info[3]->BooleanValue(v8::Isolate::GetCurrent()); if (persistent) { (*pptr).Reset(val); } else {