Skip to content
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

Add 'self' global #108

Closed
wants to merge 1 commit into from
Closed

Add 'self' global #108

wants to merge 1 commit into from

Conversation

saghul
Copy link
Contributor

@saghul saghul commented Nov 21, 2023

No description provided.

@bnoordhuis
Copy link
Contributor

Can you elaborate why that's necessary? self is a browser thing (as in window.self), not a JS thing.

@saghul
Copy link
Contributor Author

saghul commented Nov 21, 2023

No strong opinion. Other runtimes have it, and the wpt harness needed it so I thought why not? If we want to keep it simple we can drop it, I can't run the harness as-is anyway...

@bnoordhuis
Copy link
Contributor

Other runtimes have it

You mean like V8? I'm reasonably sure it's inserted by Chromium, not V8. Node doesn't have it, for instance.

It'd be fine to have qjs add it to the JSContext but I'd rather not add non-standard things in the runtime itself.

@saghul saghul closed this Nov 21, 2023
@saghul
Copy link
Contributor Author

saghul commented Nov 21, 2023

I think Deno has it but you're right, let's drop it.

@bnoordhuis
Copy link
Contributor

That makes sense because deno also has a window object, although that isn't without its issues.

@saghul saghul deleted the self branch November 30, 2023 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants