add node v0.12 and io.js compatibility

This commit is contained in:
Mike Morris
2015-02-19 16:19:31 -05:00
parent 1455822111
commit c0fe624ecd
8 changed files with 63 additions and 33 deletions

View File

@@ -46,7 +46,11 @@ private:
void processCancel(mbgl::Request*);
private:
#if UV_VERSION_MAJOR == 0 && UV_VERSION_MINOR <= 10
std::map<mbgl::Request*, v8::Persistent<v8::Object>> pending;
#else
std::map<mbgl::Request*, const v8::UniquePersistent<v8::Object> &> pending;
#endif
Queue *queue = nullptr;
};