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

How should ECMA-262 be used by other specs? #1621

Closed
jmdyck opened this issue Jul 11, 2019 · 4 comments
Closed

How should ECMA-262 be used by other specs? #1621

jmdyck opened this issue Jul 11, 2019 · 4 comments

Comments

@jmdyck
Copy link
Collaborator

jmdyck commented Jul 11, 2019

Over in PR #1620, @ljharb said:

[ECMA-262's] abstract operations are not a utility library [for other specs]

[Editorial insertions are mine. @ljharb, please let me know if I have distorted your intent.]

I find this interesting. Is there anything to prevent (or even just discourage) other specs from treating 262's abstract operations that way? More generally, are there any guidelines for how other specs are supposed to make use of 262? If not, should there be?

@ljharb
Copy link
Member

ljharb commented Jul 11, 2019

It's always great when HTML or Intl (or other layered specs that probably exist that I'm unaware of) can find ways to utilize operations in 262 - but I'd think that when they differ from their intended usage, that we'd want to know about them so that in the future we could avoid breaking them unintentionally.

As to my intent with that comment; i didn't really mean "for other specs" as much as I meant that abstract operations don't exist for general potential of reuse like utility libraries do; they exist for the specific potential of reuse inside 262, and with known layering points for external specs (ie, HTML or Intl).

@jmdyck
Copy link
Collaborator Author

jmdyck commented Jul 12, 2019

and with known layering points for external specs (ie, HTML or Intl).

But we don't really declare what those points are, do we?

@ljharb
Copy link
Member

ljharb commented Jul 12, 2019

Not explicitly, i believe, barring a few host hooks and host-dependent algorithms.

@ljharb
Copy link
Member

ljharb commented Jan 3, 2020

This seems answered? Happy to reopen if not.

@ljharb ljharb closed this as completed Jan 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants