fails on parsing async edge cases in for-of statement
KFlash opened this issue · comments
Kenny F. commented
Tenko doesn't parse 'async function f() { for await (async of []); }' and similar cases
Kenny F. commented
This should be an easy fix. When parsing out async expression, return 'async' as identifier if parsing in 'ForStatement' context. That way you can solve it after parsing out the 'of' keyword in 'for( ..... of'.