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>