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

esmeta type checker doesn't allow assigning constructors to function objects #258

Closed
michaelficarra opened this issue Oct 2, 2024 · 1 comment

Comments

@michaelficarra
Copy link

michaelficarra commented Oct 2, 2024

See tc39/ecma262#3287 and the type checker failures at https://github.com/tc39/ecma262/actions/runs/11152432538/job/30998035427?pr=3287.

Constructors are objects with [[Call]] and [[Construct]] slots. Function objects are objects with [[Call]] slots. Therefore, all constructors are function objects. However, esmeta does not allow us to pass constructors to AOs whose parameters have been declared to be function objects.

@jhnaldo
Copy link
Contributor

jhnaldo commented Oct 29, 2024

Since we fixed this issue in v0.4.3, we closed this issue. If it is unresolved, please let us know by opening this issue.

@jhnaldo jhnaldo closed this as completed Oct 29, 2024
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