Thanks to the assistance of Vyacheslav Egorov in IRC, I’m now golden.

For anyone coming across this thread in the future, the solution was to call 
`context->Global()` once *before* calling `DetachGlobal()`, thus retreiving 
a transient reference to the global-proxy object, which is what the 
subsequent `ReattachGlobal()` call expects to receive (not the global 
itself, which I then take while it’s detached.)

Latest revision of the gist has these changes, and compiles/works against 
latest v8 from git: https://gist.github.com/9bb782d191532261e26e

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to