porsager / wright

🚀 Work Fast Work Wright
Do What The F*ck You Want To Public License
180 stars 15 forks source link

No async/await support? #22

Closed ForsakenHarmony closed 7 years ago

ForsakenHarmony commented 7 years ago

wright doesn't seem to like async/await, crashing on the first line of an async function:

Error: Error jailing:
Error: Line 96: Unexpected token function
Error:   let then;
Error: Column: 2001
porsager commented 7 years ago

I just pushed a new update with the newer esprima and astring versions that should fully support ES2016.

It should work if you update now ;)

ForsakenHarmony commented 7 years ago

Cool, I'll try it tomorrow

porsager commented 7 years ago

I did a couple of tests myself and checked this works, so I'll close this issue, but let me know if you bump into anything ;)