KFlash / seafox

A blazing fast 100% spec compliant, self-hosted javascript parser written in Typescript
ISC License
483 stars 14 forks source link

Await expression can not be a class heritage #12

Open JLHwung opened 4 years ago

JLHwung commented 4 years ago
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 commented 4 years ago

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 commented 4 years ago

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

KFlash commented 4 years ago

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