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
I would like, when executing a script, it to use a specific object. I don't want to get rid of the global object, I just want functions that the script defines to go into that specific object. Kind of like the window object on a browser. In this case, I have multiple scripts and multiple objects and I want them to share a global state but still contribute their own functions to particular objects I define.
How would I go about doing this in Jurassic? (Aside from modifying the code being executed itself. Problem there is it'd mess up debug line numbers, etc.)
Thanks,
James
The text was updated successfully, but these errors were encountered:
Hello,
I would like, when executing a script, it to use a specific object. I don't want to get rid of the global object, I just want functions that the script defines to go into that specific object. Kind of like the window object on a browser. In this case, I have multiple scripts and multiple objects and I want them to share a global state but still contribute their own functions to particular objects I define.
How would I go about doing this in Jurassic? (Aside from modifying the code being executed itself. Problem there is it'd mess up debug line numbers, etc.)
Thanks,
James
The text was updated successfully, but these errors were encountered: