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.
In the earlier v8, it was clear that when a JS constructor was called,
args.This() was set to an object that had been created using an
InstanceTemplate.
For instance if I had said:
Local<FunctionTemplate> ft = FunctionTemplate::New();
ft->InstanceTemplate()->SetInternalFieldCount(2);
ft->InstanceTemplate()->SetAccessor( ... );
ft->SetCallHandler(nativeObjectConstructor, ... );
Then nativeObjectConstructor, when called as a constructor, would have
args.This() set to an object that already had 2 internal fields and an
accessor.
Using node 0.12 it seems this is no longer true.
Can anyone point me to some documentation describing what changed?
Thanks,
JD
--
--
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.