-
Notifications
You must be signed in to change notification settings - Fork 29
Conversation
I had a look and suspect there is something wrong with either Node or Nan. Nan::MakeCallback swallows the exception. It is unclear to me whether that's intended or not. There are a slew of mightily confusing tickets on this issue:
I tried different using |
@joto - thanks for digging in. /cc @rclark - overall this might be ready for your experimental use (as long as no javascript errors are thrown from within your handlers). |
@springmeyer I simply replaced |
572fd27 fixes the failing tests in
|
Going to merge as travis is now green: https://travis-ci.org/osmcode/node-osmium/builds/119961871 (ignore the coverage failure which is something to do with coveralls upstream). |
This ports the node-osmium code to use Nan. The changes required were extensive and largely done by hand + some
sed
work.Now the code should compile against both node v0.10.x, v0.12.x, v4, and v5.
But there may be bugs introduced, so we should test this well.
TODO before merging:
https://travis-ci.org/osmcode/node-osmium/jobs/119723899#L3192
@joto - can you take a look to try figure out what is wrong with the error handling/why those tests are failing? I've looked for many hours already and just don't see it.
Refs #37
/cc @rclark