Closed nzakas closed 3 years ago
Okay, should be all set now.
I think we need the top-level await tests to have modules
word in the file path. Otherwise, they'll be parsed both with sourceType: "script"
and sourceType: "module"
(that "Only" in the variable name is misleading)
I can see this test in the output, it's passing only because the current Acorn allows that:
ecmaVersion
Scripts
/13/top-level-await/top-await
√ should parse correctly when sourceType is script
We can make a modules
subdir in ecma-version/13
: ecma-version/13/modules/top-level-await/
, the same way as it was done in ecma-version/11
I updated the tests. I’d like to see if there’s a new Acorn release in the next couple days with the top-level await fix.
A new release of Acorn was published, so added that.
Updates Acorn and adds tests for top-level await and regexp match indices.
Refs https://github.com/eslint/eslint/issues/14632 Refs https://github.com/eslint/eslint/issues/14640