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

Do dotted intrinsics count as well‑known intrinsic objects? #2068

Open
ExE-Boss opened this issue Jun 26, 2020 · 1 comment
Open

Do dotted intrinsics count as well‑known intrinsic objects? #2068

ExE-Boss opened this issue Jun 26, 2020 · 1 comment

Comments

@ExE-Boss
Copy link
Contributor

I’m opening this issue because of this discussion I had with @ljharb in #2056 (comment):


Originally posted by @ljharb in #2056 (comment)

this PR is purely editorial (no observable change) except for an impact on Function.prototype.toString (which makes this PR accidentally normative, which means it won't land soon).


Originally posted by @ExE-Boss in #2056 (comment)

Well, the impact on Function.prototype.toString won’t be observable, as engines already include PropertyName when stringifing all named built‑in functions.

Also, I’m pretty sure that dotted intrinsics also count as well‑known intrinsic objects.


Originally posted by @ljharb in #2056 (comment)

@ExE-Boss as is, the PR is normative in the sense that it allows engines to omit more names. Another option is to tighten the toString requirement to require all names.

"well-known" means it's in the table; I don't think dotted forms are in that category - and if they were, then the change to support the dotted notation was normative, because it then imposes the toString name requirement on every function.

@devsnek
Copy link
Member

devsnek commented Jun 26, 2020

The Function.prototype.toString issue is fixed by #1948

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

No branches or pull requests

2 participants