Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qjs -m -e <expr> should evaluate expression as module #862

Closed
bnoordhuis opened this issue Jan 28, 2025 · 0 comments · Fixed by #863
Closed

qjs -m -e <expr> should evaluate expression as module #862

bnoordhuis opened this issue Jan 28, 2025 · 0 comments · Fixed by #863
Labels
bug Something isn't working

Comments

@bnoordhuis
Copy link
Contributor

Right now, it evaluates it as a classic script. That is, qjs -m -e 'await 42' fails with the same cryptic parse error as #833.

@bnoordhuis bnoordhuis added the bug Something isn't working label Jan 28, 2025
bnoordhuis added a commit to bnoordhuis/quickjs that referenced this issue Jan 28, 2025
Evaluate the expression as a module when -m is specified, not as a
classic script.

Fixes: quickjs-ng#862
bnoordhuis added a commit that referenced this issue Jan 28, 2025
Evaluate the expression as a module when -m is specified, not as a
classic script.

Fixes: #862
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant