Comment #3 on issue 1078 by [email protected]: Assert when changing the prototype of the global object.
http://code.google.com/p/v8/issues/detail?id=1078
Your summary here captures my thoughts as well. Currently the way to set the prototype of the global object is to get the prototype (which is the real global object) and set its prototype: context->Global()->GetPrototype()->SetPrototype(...).
This is not very intuitive. We should update the comment for Context::Global() to state what you get. When your global is attached you will get the global proxy object whose prototype is the real global object. If you have called DetachGlobal you will get the actual global object.
-- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
