Support ES2022
sxzz opened this issue · comments
Kevin Deng 三咲智子 commented
Motivation
Acorn already supports ES2022, astring
will emit errors in ES2022 syntax.
Expected behavior
Support ES2022
Actual behavior
/********/node_modules/astring/dist/astring.js:267
this[statement.type](statement, state);
^
TypeError: this[statement.type] is not a function
statement.type
= PropertyDefinition