summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2018-05-31 12:21:41 +0200
committerKonstantin Käfer <mail@kkaefer.com>2018-05-31 12:21:41 +0200
commit9f0a58d8366ff4b37ea09c824fb73f707587727f (patch)
tree01f6f769d7a9ee7f76073272d13c601e5dc3665d
parenta7723f57b3422e71f21d5e91981ebbc8365d6b7b (diff)
downloadqtlocation-mapboxgl-upstream/release-node-v3.5.tar.gz
-rw-r--r--package.json2
-rw-r--r--platform/node/src/node_thread_pool.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/package.json b/package.json
index edb41f1f68..20011b35c2 100644
--- a/package.json
+++ b/package.json
@@ -13,7 +13,7 @@
},
"license": "BSD-2-Clause",
"dependencies": {
- "nan": "^2.4.0",
+ "nan": "2.8.0",
"node-pre-gyp": "^0.6.37",
"npm-run-all": "^4.0.2"
},
diff --git a/platform/node/src/node_thread_pool.cpp b/platform/node/src/node_thread_pool.cpp
index fd6df575fc..1f37565e8a 100644
--- a/platform/node/src/node_thread_pool.cpp
+++ b/platform/node/src/node_thread_pool.cpp
@@ -6,7 +6,7 @@
namespace node_mbgl {
NodeThreadPool::NodeThreadPool()
- : queue(new util::AsyncQueue<std::weak_ptr<mbgl::Mailbox>>(uv_default_loop(), [this](std::weak_ptr<mbgl::Mailbox> mailbox) {
+ : queue(new util::AsyncQueue<std::weak_ptr<mbgl::Mailbox>>(uv_default_loop(), [](std::weak_ptr<mbgl::Mailbox> mailbox) {
Worker* worker = new Worker(mailbox);
Nan::AsyncQueueWorker(worker);
})) {