-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Which specifications are related to ECMA262 #1738
Comments
I'll answer your second question: No, it is not possible to determine relatedness. Any other specification could reference the well-known intrinsics. It's just a tool that gives a constant identifier to certain objects in a JS realm, making them referenceable. |
And intrinsics typically gets added to the well-known list when the editor of another specification notifies the ECMA-262 editors that they need to reference those intrinsics. |
That's how they typically used to be added, but I think |
@bergus and @allenwb got it, thanks for your answers. @jmdyck was intriguing :) From your words, we can conclude that the table with well-known intrinsics will no longer be updated. Then the question follows, why then do we need in table with intrinsics? |
@dSalieri because #1376 made it so that any "original property" off of any well-known intrinsic can be accessed with dots - so only a "top-level" intrinsic object ever needs to be added. You may be looking for the second sentence of the second paragraph in this section: https://tc39.es/ecma262/#sec-well-known-intrinsic-objects |
@ljharb I understood access through dots. But again, the specification does not mean that if you want to use in "your specification" then use dot notation. No, this is described within the ecma262 specification itself, how to use it internally. And then if you look at this second paragraph of what you are talking about, you can draw the following conclusion: |
No, it will still be updated, but probably only for new intrinsics. E.g. PR #1515 added the
I don't think the ES spec itself has ever stated what related specifications can or cannot reference from the ES spec. (Or should/should not. Or what form such references can take.) Nothing is specifically permitted or specifically disallowed. So, for example, when the Infra spec requested that
and then proceeded to use The idea that ES intrinsics should only be referenced directly, and thus require an entry in Table 8 in order to be referenced, isn't something you'll see stated officially. I think it's more of an understanding among TC39 + environs. And #1376 changed that understanding, so that it's now okay to use the dot notation to reference intrinsics that don't appear in Table 8. (Or at least, it's a step in that direction. It'll be clearer when the actions that @ljharb describes here happen.) |
@jmdyck hmm. It now looks like a hybrid concept with well-known intrinsics. And the table, as it were, is not deleted, but it is also updated as you said in special cases (although @allenwb didn’t say anything about this above, and from his words, as I understand it, the addition of new well-knowns depends on the request of third-party specifications here). And in order to use well-known intrinsics that are not in the table in any specification (although in fact they are just intrinsics, since they are not in the table), you need to use dot notation to follow the rules. Although, as I understand it, @allenwb is against deleting the table as a whole, as a concept of the well-known intrinsics themselves and also against operations with specification devices that are not agreed with ecma262. If dotted notation is agreed action on specification devices, then fine. But I am not sure in it. @allenwb is dot notation in this case a contradiction in the existence of a table well-knowns? |
Yes, dotted notation is what's intended to be used everywhere from now on. Once I've updated known related specs, I'll put up a PR to remove the unused intrinsics (ie, |
@ljharb dotted notation is agreed action on ecma262 specification devices for related specifications? |
I won’t know for sure until i make the PRs, but i can’t imagine why not, and an editor of the html spec seemed on board on the 262 PR. |
@ljharb I understood you. Although yes this is a formalized entry proposed by ecma262, then there are no complaints. It looks like you mean the editor as a person and not as an application. But what did you mean by this part of the sentence: |
I mean that one of the humans who has the position of “editor” of the html spec seemed like they were in favor of the change. |
@ljharb Now completely clear. Thanks for quickly answer. |
Do you think your question has been answered, and this can be closed? |
@ljharb I think yes. |
My question is based on a quote from the spec and answers of tc39 members from another question (#1703).
Quote from specification, section 6.1.7.4:
But as I could see, not all objects are used in the algorithms of the specification itself(as example
Array.prototype.forEach
).To which I was given this kind of answer by @devsnek:
As well as a member @allenwb:
Since the specification does not say that well-known intrinsic is not only an object that is used by the specification itself, the following questions therefore arise:
The text was updated successfully, but these errors were encountered: