In JSC you make a wrapper by saying toJS. In V8, we have a bunch of different functions that do that. We should unify them. I've worked up a patch with the name V8DOMWrapper::wrap (soon to be followed with V8DOMWrapper::unwrap for the reverse operation). Patch forthcoming.
Created attachment 32537 [details] Patch (renaming only)
Comment on attachment 32537 [details] Patch (renaming only) Why not just call them toJS like the JSC bindings? And make them autogenerated like the JSC bindings? Or is that the eventual plan?
That sound rocking. Cancel the review and I'll do that instead.
Closing some V8-related work items.