Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Break async #94

Closed
aymericbeaumet opened this issue Sep 12, 2017 · 1 comment
Closed

Break async #94

aymericbeaumet opened this issue Sep 12, 2017 · 1 comment
Labels

Comments

@aymericbeaumet
Copy link

aymericbeaumet commented Sep 12, 2017

I have been facing a strange behavior in the REPL when defining an async method delete to an object literal:

require('@std/esm');

// OK
({ async foobar() {} });

// KO
({ async delete() {} }); // syntax error

I cannot reproduce this issue with other restricted identifiers (like throw, const, return). Generators are working properly.


node: 8.4.0
std/esm: 0.9.0

@jdalton jdalton added the bug label Sep 12, 2017
@jdalton
Copy link
Member

jdalton commented Sep 12, 2017

Thank you @aymericbeaumet!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

2 participants