[quickjs-devel] Re: hello_module.js execution error
- From: "Serghei Amelian" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "serghei" for DMARC)
- To: quickjs-devel@xxxxxxxxxxxxx
- Date: Wed, 14 Aug 2019 18:07:47 +0300
On Wed August 14 2019 17:46:00 Serghei Amelian wrote:
Hello,
I tried to execute hello_module.js, but for some reason qjs is unable to
execute it. Import feature is not implemented yet or I'm missing something?
./qjs examples/hello_module.js
SyntaxError: expecting '('
at examples/hello_module.js:3
Nevermind, I missed "-m" argument (Load as ES6 module).
./qjs -m examples/hello_module.js
Hello World
fib(10)= 55
--
Serghei
Other related posts: