[quickjs-devel] import statement not recognised in global mode

  • From: Anthony Shipman <als@xxxxxxxxxxxxxxxxxxxxx>
  • To: quickjs-devel@xxxxxxxxxxxxx
  • Date: Fri, 25 Jun 2021 20:06:50 +1000

When I load a script using the JS_Eval() function in the C API I can
load in the "global" mode. In this mode the ES6 import statement syntax
is not recognised, only import(...).   Surely it's normal for code at
the global level to import modules?




Other related posts: