breuleux / earl-grey

Programming language compiling to JavaScript
http://breuleux.github.io/earl-grey/
MIT License
464 stars 6 forks source link

Make non-async functions that use the await keyword fail at compile-time #21

Open davej opened 9 years ago

davej commented 9 years ago

Can non-async functions that use the await keyword fail at compile-time?

I often run into silent errors that cause my app not to run because I've forgotten the async keyword on the function.