You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that tokenizer will never match what a full parser can, even though it's pretty close.
But in this instance, I think, we should be able to modify tokencontext.js to handle async-await in a similar way that it already handles generators & yield.
Tokenizer fails the following test while the parser works fine.
async function f(){ await /a*/; }
It appears to interpret as { (await / a) * /;, } leading to an unterminated regexp error.
To reproduce:
node acorn/dist/bin.js --ecma2020 --tokenize <test-file.js>
The text was updated successfully, but these errors were encountered: