-
Notifications
You must be signed in to change notification settings - Fork 518
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update to nan v2 (adds support for iojs 3) #324
Conversation
Travis build is failing on iojs v3 but this seems to be unrelated to this repo and caused by errors from the v8 code. Maybe a stricter compiler or some other changes. It builds on my OSX machine so it could also be linux specific. If anyone has a linux machine locally, please give this PR a try on a few versions of node and iojs. |
Working fine here, iojs v3.0.0 on OSX (El Cap). Thank you! |
@defunctzombie iojs requires gcc 4.8.x or newer (v8 is c++11 only nowadays). People in this issue seems to have gone through the same pains. Changes LGTM. |
Sigh. Why doesn't travis use the correct gcc when you specify iojs :( Seems like we need to file a new ticket with them saying iojs-v3 support is incomplete because no native modules can build. |
@defunctzombie thinking it might rather be choice of distro than jenkins being conservative. Anyway, seems to be a few one-liners to getting 4.8.x running at travis in that issue. |
0d63e12
to
0d46ca5
Compare
Nan v2 required more code changes but also adds support for iojs 3 and hopefully provides a more stable API which will not have to change as much going forward.
0d46ca5
to
73411db
Compare
update to nan v2 (adds support for iojs 3)
While this compiles for now, you still want to change all uses of I would also recommend |
@kkoopa can you give an example from this codebase of Nan::To use. The nan docs are not so clear to me how I would update the following: const ssize_t rounds = info[0]->Int32Value(); My first stab at it was const ssize_t rounds = Nan::To<ssize_t>(info[0]).FromJust(); but this doesn't build. |
Only the listed conversions are available. While |
ssize_t depends on architecture iirc So what would be the API to do the above conversion. Examples/docs are Do I need to consult v8 maybe object docs? On Monday, August 17, 2015, Benjamin Byholm [email protected]
|
They won't say more than what's written at https://github.com/nodejs/nan/blob/master/doc/maybe_types.md#api_nan_maybe Use The above conversion is done as |
Thanks, I will give that a try. |
Nan v2 required more code changes but also adds support for iojs 3 and
hopefully provides a more stable API which will not have to change as
much going forward.