summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--package.json17
-rw-r--r--src/node_file_source.cpp8
3 files changed, 13 insertions, 16 deletions
diff --git a/Makefile b/Makefile
index d66f6ad1c3..4884d5a5fd 100644
--- a/Makefile
+++ b/Makefile
@@ -63,11 +63,11 @@ $(MBGL)/config/%.gypi: $(MBGL) $(MBGL)/configure
.PHONY: test-suite
test-suite:
- -@(`npm bin`/tape test/render.test.js | `npm bin`/tap-spec)
+ -@(`npm bin`/tape test/render.test.js | `npm bin`/faucet)
.PHONY: test-js
test-js:
- @(`npm bin`/tape test/js/**/*.test.js | `npm bin`/tap-spec)
+ @(`npm bin`/tape test/js/**/*.test.js | `npm bin`/faucet)
.PHONY: test
test: test-js test-suite
diff --git a/package.json b/package.json
index 65e68b6106..e8e2f13fc3 100644
--- a/package.json
+++ b/package.json
@@ -18,20 +18,21 @@
}
],
"dependencies": {
- "nan": "^1.4.1",
- "node-pre-gyp": "^0.6.4"
+ "nan": "^1.8.4",
+ "node-pre-gyp": "^0.6.7"
},
"bundledDependencies": [
"node-pre-gyp"
],
"devDependencies": {
- "aws-sdk": "^2.1.9",
+ "aws-sdk": "^2.1.27",
+ "faucet": "0.0.1",
"mapbox-gl-test-suite": "git://github.com/mapbox/mapbox-gl-test-suite#master",
- "mkdirp": "^0.5.0",
- "request": "^2.53.0",
- "tap-spec": "^2.2.1",
- "tape": "^3.5.0",
- "st": "^0.5.3"
+ "mkdirp": "^0.5.1",
+ "request": "^2.55.0",
+ "st": "^0.5.3",
+ "tap-spec": "^3.0.0",
+ "tape": "^4.0.0"
},
"scripts": {
"install": "node-pre-gyp install || make",
diff --git a/src/node_file_source.cpp b/src/node_file_source.cpp
index 298c30c0ba..866e6d4783 100644
--- a/src/node_file_source.cpp
+++ b/src/node_file_source.cpp
@@ -125,9 +125,7 @@ void NodeFileSource::processCancel(mbgl::Request *req) {
#endif
// Dispose and remove the persistent handle
-#if (NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION)
- // it->second.Reset();
-#else
+#if (NODE_MODULE_VERSION <= NODE_0_10_MODULE_VERSION)
NanDisposePersistent(it->second);
#endif
pending.erase(it);
@@ -155,9 +153,7 @@ void NodeFileSource::notify(mbgl::Request *req, const std::shared_ptr<const mbgl
// First, remove the request, since it might be destructed at any point now.
auto it = pending.find(req);
if (it != pending.end()) {
-#if (NODE_MODULE_VERSION > NODE_0_10_MODULE_VERSION)
- // it->second.Dispose();
-#else
+#if (NODE_MODULE_VERSION <= NODE_0_10_MODULE_VERSION)
NanDisposePersistent(it->second);
#endif
pending.erase(it);