You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expressions like eval("var m = 10") should add variable` into its parent scope. This doesn't work now (if the variable isn't already defined in that scope), because the variables are accessed by index not by name.
To make this work each frame should also store reference of a global object, and each global variable access is converted to member access expression in that object. If some function uses eval it should also Object.create(parentGlobal). This way the eval will add the variable into the parent's global object and it can be accessed.
The text was updated successfully, but these errors were encountered:
Expressions like
eval("var m = 10")
should add variable` into its parent scope. This doesn't work now (if the variable isn't already defined in that scope), because the variables are accessed by index not by name.To make this work each frame should also store reference of a global object, and each global variable access is converted to member access expression in that object. If some function uses
eval
it should alsoObject.create(parentGlobal)
. This way theeval
will add the variable into the parent's global object and it can be accessed.The text was updated successfully, but these errors were encountered: