-
Notifications
You must be signed in to change notification settings - Fork 13
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 import.meta
#46
Comments
I missed the meeting, but what exactly is |
In Deno, (Btw, in the meeting @lucacasonato mentioned that in Deno, Since we want to include browsers as web-interoperable runtimes, and there are WinterCG-adjacent runtimes like NativeScript that aren't server-side, the idea was to define But as far as I understand, the main person who opposed adding this to Node.js was @devsnek, and their concerns were mostly about how, since |
Just to clarify, the reason I dislike |
I fail to see how this is any different from Also I think we should standardize the
|
I'm a little worried about the prospect of defining things as "normative optional". If we want to define multiple conformance classes--e.g., one for servers and one "generic" that might omit some server features--let's do that, but it should be clear which sort of implementation should try to conform to which set of things. We shouldn't define something as normative optional just because Node and Deno disagree on substance whether it's a good idea--the whole point of WinterCG is to make these sorts of environments more compatible with each other. |
@lucacasonato if "is this the main" doesn't make sense for all wintercg runtimes - which it doesn't sound like it does for node - then it seems inappropriate for wintercg? |
To be very very clear I am not putting any weight into Node's official position here. I was just clarifying my opinion since I was pinged. |
@ljharb I don't see where you got the conclusion: "which it doesn't sound like it does for node". For example, my proposal above outlines how it can make sense (exactly the same way as it does in Deno). |
I'm trying to spec this, and it's not clear how to define an agent cluster's entrypoint module in a way that excludes |
This also includes specifying `import.meta.main` and allowing runtimes to customize module loading. Closes wintercg#46.
You may add an implementation-defined "is an entry point? given a module script" algorithm with the normative requirement that, if "is an entry point? given X" returns true at any point, then `is an entry point? given Y" can only return true if X is Y. It's a bit hand-wavy, but hopefully clear enough and implementations will not diverge. |
|
Related conversation in TC39 forums: |
We now have the |
In today's WinterCG meeting we agreed to add
import.meta
to the common minimum API, including the web'surl
property andresolve
method, but also Deno'smain
property.The text was updated successfully, but these errors were encountered: