Confirmed users, Bureaucrats and Sysops emeriti
419
edits
No edit summary |
No edit summary |
||
| Line 16: | Line 16: | ||
--[[User:Bzbarsky|Bzbarsky]] 21:16, 4 Jun 2005 (PDT) | --[[User:Bzbarsky|Bzbarsky]] 21:16, 4 Jun 2005 (PDT) | ||
Answers to JS arch questions: | |||
1. Yes. The global object of a context is just a convenient association, used by the DOM code in Mozilla classic and modern implementations. What ECMA-262 calls the "variable object" is the last object on the scope chain, which is found from the current frame (activation object). That outermost scope object has no necessary relation to JS_GetGlobalObject(cx). | |||
2. On marking outer and inner: we have to avoid bad paths that lead from an old (back in history) inner to the outer to a different (current) inner. It would be good to find ways to check this with assertions or other kinds of proof aids. Same goes for any bad paths that use JS_GetGlobalObject(cx). | |||
/be | |||