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