lightspark-users team mailing list archive
Mailing list archive
while looking through the code, I saw that in ABCContext::exec
we create a global object for each script by
and then do
which adds the 'global' to the globalScopes member of GlobalObject.
Why do we have multiple global scopes? It seems that
GlobalObject::getVariableAndTargetByMultiname searches through all
so it should be the same if we have just one instead of multiple?
Then, I would derive GlobalObject from ASObject, as toString() on the
global object should return "[object Global]".
(we return [object Object] currently).