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

Remove non-existend "AsyncArrowFunction" constructor #4044

Closed
nicolo-ribaudo opened this issue Apr 8, 2024 · 0 comments · Fixed by #4045
Closed

Remove non-existend "AsyncArrowFunction" constructor #4044

nicolo-ribaudo opened this issue Apr 8, 2024 · 0 comments · Fixed by #4045

Comments

@nicolo-ribaudo
Copy link
Member

Same as 04517c7, AsyncArrowFunction doesn't exist.

linusg added a commit to linusg/test262 that referenced this issue Apr 8, 2024
There is no such hidden constructor, it's the same as the hidden
AsyncFunction constructor. In other words:

```js
Object.getPrototypeOf(async () => {}).constructor ===
Object.getPrototypeOf(async function () {}).constructor
```

Closes tc39#4044.
linusg added a commit to linusg/test262 that referenced this issue Jul 3, 2024
There is no such hidden constructor, it's the same as the hidden
AsyncFunction constructor. In other words:

```js
Object.getPrototypeOf(async () => {}).constructor ===
Object.getPrototypeOf(async function () {}).constructor
```

Also add a test to ensure that %AsyncFunction.prototype% is indeed the
prototype of an async arrow function.

Closes tc39#4044.
@Ms2ger Ms2ger closed this as completed in a82f538 Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants