Call me silly but I've spent this afternoon looking at v8/samples and the various web pages/blog entries (and the embedder's guide) and not getting a clear picture of how to create a new object type with methods and a constructor in v8.
Is there a good example out there?
In my particular case, I have this implemented using SpiderMonkey, which seems a lot more straightforward. It has the JS_InitClass call where you pass in a constructor, a destructor, and an array of method descriptors.
If that's it, I'll just buckle down and figure it out. But if someone can point me at something to start from, I'd be much obliged!