Thanks, Marcin. I am aware of nan, and if I were starting over on a new project I would certainly recommend it. But this code does not directly use it.
So my question remains... has the V8 API changed so that args.This() no longer receives an object that has been instantiated from an instance template? JD > On Sep 15, 2015, at 12:26 AM, Marcin Cieslak <[email protected]> wrote: > > On Mon, 14 Sep 2015, John David Duncan wrote: > >> Hi, >> >> I'm porting some C++ code that ran under node.js 0.8 and 0.10 to use the >> newer v8 in node 0.12. > > (...) > >> Using node 0.12 it seems this is no longer true. >> >> Can anyone point me to some documentation describing what changed? > > You can save a lot of time and gain portability for various V8 versions > included in many node versions (up to the shiny new node 4.0) > by using "Native Abstractions for Node" (also known as "nan"): > > https://github.com/nodejs/nan/ > > You have to basically include "#include <nan.h>" (it's only > ONE header file, no other changes needed!) and > change your code to use Nan macros and functions > instead of native V8 ones. > > ~Marcin -- -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
