Y
Hacker News
new
|
ask
|
show
|
jobs
by
btmills
2531 days ago
Try adding the `--module` flag [1]. JS now has two different grammars, script and module, and the `import` keyword is only allowed in module code.
[1]
https://bellard.org/quickjs/quickjs.html#qjs-interpreter
1 comments
mstade
2531 days ago
Ah yes of course – thanks, works as advertised now! :o)
Really cool stuff!
link
Really cool stuff!