It took some thinking and an overseas vacation over Christmas to figure it 
out but here is what I came up with:

https://gist.github.com/Chaircrusher/48d53ee78567ca213f7a858e91e4771d

The problems I was having.-- I think -- was just getting things in the 
right order; initializing the object template properly before getting an 
instance of the object to set in the Global.

Also, I was passing in a v8::Global already created into my class 
initialization, rather than calling v8::Context::Global() to set the object 
instance in the global prototype.

At any rate I will keep this gist up to date if I upgrade to more current 
V8 versions than I'm currently using.

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
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 v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to