P.S. A typo:
whenever I need the global object of a template
should be read as
whenever I need the global object of a context

Sorry for the mistake

On Mar 10, 8:33 pm, avasilev <[email protected]> wrote:
> Well the title says it, currently whenever I need the global object of
> a template, I get it via context->Global()->GetPrototype()->ToObject(), 
> because there was a situation when this was the only way
>
> (can't remember exactly the situation, but a post in a discussion
> explained exactly this situation). On the other hand, V8 doc says:
> "Please note that changes to global proxy object prototype most
> probably would break VM---v8 expects only global object as a prototype
> of global proxy object."
> which is quite vague.
> So what are the rules?

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

Reply via email to