ObjectTemplate gives you JS objects without a dedicated constructor
function and prototype. They use Object[.prototype]. Since you can
still attach property handlers, they can be useful. FunctionTemplates
give you the additional benefit that they provide a constructor
function for use from JS code and JS code can add methods to the
prototype.
To study a working example that shows what you need to do for your
case, including JS->native reference management, check out
http://github.com/ry/node/blob/master/src/node_object_wrap.h
http://github.com/ry/node/blob/master/src/node_buffer.{h,cc}
Matthias
> --
> v8-users mailing list
> v8-u...@googlegroups.com
> http://groups.google.com/group/v8-users