Acorn targets es2016 by default, not es2017 or later. You have to specify the version. https://github.com/acornjs/acorn#main-parser
Activity
[-]Can't parse es2017[/-][+]Can't parse es2017 and later[/+]twada commentedon May 9, 2018
@falsandtru Sorry for my late response. I'll take a look.
To give you a quick fix, could you tell me what transpiler-side product are you using?
I'll fix it first.
falsandtru commentedon May 9, 2018
I'm using gulp-unassert.
twada commentedon May 10, 2018
While tackling with this issue, I've found that escodegen cannot generate
for-await-ofstatement so I made a PR to fix. Please wait for a moment.refs: Support async iteration statement
for-await-ofintroduced in ES2018falsandtru commentedon Jun 17, 2018
Now gulp-unassert can work with es2018, thanks!