-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make global function belong to window object #102
Comments
there is my solution:
|
Could you not just use this? scriptEngine.SetGlobalValue("window", scriptEngine.Global); |
@Gdocal I did what @paulbartrum has suggested. In navigators, the global object is the window object. |
Hey i saw you asking this on Jint also, with which engine you think this is accomplished easier? |
@KardoseR Both engines can do almost the same things. The principles are the same, they only differ in the code you write to apply them. I am working with both engines, and let developpers choose which one to choose. |
@maitredede hi are you still working on this? which engine you are using the most as of now? |
Hi @KardoseR like I said earlier, I used the simple shortcut |
Hello.
I have code:
This code works fine in any browser, because all global objects treated as winows properties.
Is there anyway to reproduce same behaviour in jurassic library?
I already created new class which represents Window object and which interhited from ObjectInstance
The text was updated successfully, but these errors were encountered: