Fix compatibility with recent Node versions#63
Fix compatibility with recent Node versions#63Vortex375 wants to merge 5 commits intonikhilm:masterfrom
Conversation
src/tag.cc
Outdated
| Nan::Call(Nan::New(baton->callback), Nan::GetCurrentContext()->Global(), 1, argv); | ||
| } | ||
|
|
||
| //baton->callback.Dispose(); |
There was a problem hiding this comment.
How does the reference to the callback get released when using NaN without this dispose call?
|
Thanks for the patch @Vortex375! This looks great. Could you answer the dispose question before I merge this? |
|
Oops, I actually forgot about that one. Should be fixed now. The NaN documentation states:
|
|
Have you noticed this? |
|
Hmm, I'm trying to investigate this but I'm not sure where exactly the test crashes. If I do the There are also more problems: you can crash it by doing Was there a reason to export the |
|
Sorry, I forgot about this. I'll try to reproduce this on Thursday ideally. On Sat, Mar 26, 2016 at 1:24 PM, Benjamin Schmitz notifications@github.com
|
|
I am sorry, I haven't been working on this at all. The Tag object does not need to be exported into JS scope. I would be ok with it being hidden. I believe it was only exported for node-taglib/spec/taglibSpec.js Line 11 in 80189d1 |
I rewrote large parts of your wrapper using the nan abstraction layer. I'm now able to compile and run it on node versions 4.x and 5.x. :-)