Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
add io.js v3.x support
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemorris authored and jfirebaugh committed Sep 9, 2015
1 parent 627623e commit 3d48147
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ matrix:
apt:
packages: [ 'lib32stdc++6' ]
- os: linux
env: FLAVOR=node CXX=clang++-3.5 BUILDTYPE=Release NODE_VERSION=iojs-v2
env: FLAVOR=node CXX=clang++-3.5 BUILDTYPE=Release NODE_VERSION=iojs-v3
addons:
apt:
sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ]
Expand All @@ -79,7 +79,7 @@ matrix:
- os: osx
osx_image: xcode6.4
compiler: clang
env: FLAVOR=node NODE_VERSION=iojs-v2
env: FLAVOR=node NODE_VERSION=iojs-v3
- os: osx
osx_image: xcode6.4
compiler: clang
Expand Down
1 change: 1 addition & 0 deletions platform/node/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
render options.
- Adds support for rendering v8 styles.
- No longer load resources before a render request is made.
- Adds io.js v3.x support.

# 1.1.3

Expand Down
2 changes: 1 addition & 1 deletion platform/node/src/node_file_source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ void NodeFileSource::processAdd(const mbgl::Resource& resource) {
queue->ref();
}

auto requestHandle = Nan::New<v8::Object>(NodeRequest::Create(this, resource));
v8::Local<v8::Object> requestHandle = NodeRequest::Create(this, resource)->ToObject();
pending.emplace(resource, requestHandle);

v8::Local<v8::Value> argv[] = { requestHandle };
Expand Down
2 changes: 1 addition & 1 deletion platform/node/src/node_mapbox_gl_native.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ NAN_MODULE_INIT(RegisterModule) {
Nan::SetPrototype(target,
Nan::Get(EventEmitter, Nan::New("prototype").ToLocalChecked()).ToLocalChecked());

mbgl::Log::setObserver(std::make_unique<node_mbgl::NodeLogObserver>(Nan::New(target)));
mbgl::Log::setObserver(std::make_unique<node_mbgl::NodeLogObserver>(target->ToObject()));
}

NODE_MODULE(mapbox_gl_native, RegisterModule)

0 comments on commit 3d48147

Please sign in to comment.