tokenizer fails on an await expression containing a regexp
Author: ascidianCreated Oct 11, 2020Updated Oct 11, 2020
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>
Source: acornjs/acorn