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

Await expression can not be a class heritage #12

Open
JLHwung opened this issue Oct 26, 2020 · 3 comments
Open

Await expression can not be a class heritage #12

JLHwung opened this issue Oct 26, 2020 · 3 comments

Comments

@JLHwung
Copy link

JLHwung commented Oct 26, 2020

async function f() {   class x extends await y { }   }

Per spec: https://tc39.es/ecma262/#prod-ClassHeritage ClassHeritage should be a LeftHandSideExpression. If I am reading correctly, AwaitExpression is not a LeftHandSideExpression.

@KFlash
Copy link
Owner

KFlash commented Oct 26, 2020

Good catch. You are right! I will try to fix it soon as I find time for it. Working on a new language atm. Want to join?

@JLHwung
Copy link
Author

JLHwung commented Oct 27, 2020

@KFlash Which language is your next target? I might take a look but most of my time are still spent on JS.

@KFlash
Copy link
Owner

KFlash commented Oct 27, 2020

It's js. I'm trying to create a language like TS that will compile down to Js. But with improved performance ofc. And plan to add in linting and minify options

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