4 ms·
The article we're discussing answers this question - NAN gives you backwards compatibility with old versions of V8 (and therefore Node), while the V8 API doesn'
by Zarel 11y ago
The article we're discussing answers this question - NAN gives you backwards compatibility with old versions of V8 (and therefore Node), while the V8 API doesn't.
- morebetterer 11y agoAre you aware that NAN2's API is incompatible with NAN1's API? How is that backwards compatible?
- Zarel 11y agoThe point is that NAN2 is compatible with old versions of Node and io.js, not that NAN2 is compatible with NAN1. This is bolded in the article we're discussing: > NAN's promise is to provide a single API to develop against, not a forever-stable API, it was always anticipated that it would change and adapt to V8 but do so in a way that you get to remain compatible with older versions of V8.
- morebetterer 11y agoI am fully aware of that. I had to port orphaned NAN1 code to the new v8 API which I found easier to work with than NAN2.