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
Specifying global object (globalThis) #156
Labels
Comments
I am sure libv8 has some tweak to make this happen, we do not have it
exposed though.
Maybe walk all the props on window and set them as top level vars?
…On Sun, Jan 5, 2020 at 2:11 PM Jason Barnabe ***@***.***> wrote:
I'm trying to create an environment for scripts that expect to be run in
browsers. I can define window, but that doesn't help when the JS is
looking at location or document or any other number of things. I presume
things like that work because window is the global object, and they're
defined there (window.location, window.document, etc.)
Is there a way to specify the global object?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#156?email_source=notifications&email_token=AAABIXNSWVH4QQ2NP3UUFH3Q4FFX5A5CNFSM4KCZFT22YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IEBR46A>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAABIXJTHZ5RBRE7XVOXFA3Q4FFX5ANCNFSM4KCZFT2Q>
.
|
Yeah, that's the backup plan. |
I am guessing it is something like this: I support a PR that gives us something like this I guess?
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to create an environment for scripts that expect to be run in browsers. I can define
window
, but that doesn't help when the JS is looking atlocation
ordocument
or any other number of things. I presume things like that work becausewindow
is the global object, and they're defined there (window.location
,window.document
, etc.)Is there a way to specify the global object?
The text was updated successfully, but these errors were encountered: