[node] move to Nan 2.10.0

This commit is contained in:
Konstantin Käfer
2018-04-20 16:40:17 +03:00
parent d5aff7182d
commit 973aa963f9
5 changed files with 34 additions and 15 deletions

View File

@@ -25,6 +25,8 @@ class NodeMapObserver : public mbgl::MapObserver {
void onDidFailLoadingMap(std::exception_ptr) override;
};
class RenderRequest;
class NodeMap : public Nan::ObjectWrap,
public mbgl::FileSource {
public:
@@ -84,7 +86,7 @@ public:
std::exception_ptr error;
mbgl::PremultipliedImage image;
std::unique_ptr<Nan::Callback> callback;
std::unique_ptr<RenderRequest> req;
// Async for delivering the notifications of render completion.
uv_async_t *async;