import('aa.js') not supported
I've done a fix for this in esprima.net https://github.com/sebastienros/esprima-dotnet/pull/154/commits/272dd32541fb8202e76f9157cbf741bb138921b0
fix : https://github.com/jquery/esprima/pull/2076
Hi @jogibear9988, thanks for the report and the fix! For our future reference, this likely needs a reference to the specification, as well as some tests.
there are already tests for "import(xxx)"
spec: https://github.com/estree/estree/blob/master/es2020.md#importexpression
for example here: https://github.com/jquery/esprima/blob/main/test/fixtures/es2018/dynamic-import/await-import.js
my fix has one problem:
import('a','b') is no error (but it should be). but I don't know how this should be fixed atm. I'm not deep enough into esprima
the import('a', 'b') is now also fixed that it would fail.