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

Shebang not ignored in ES6 module autodetect #91

Closed
FergoTheGreat opened this issue Sep 8, 2021 · 1 comment
Closed

Shebang not ignored in ES6 module autodetect #91

FergoTheGreat opened this issue Sep 8, 2021 · 1 comment

Comments

@FergoTheGreat
Copy link

Shebang lines are ignored when executing with qjs, allowing for executable JS scripts in *nix environments. However, it seems that the shebang line is not ignored when detecting whether a file is an ES6 module or not. It will look to see if the first line of the file contains an import statement and see the shebang instead and incorrectly conclude that it is not a module.

@bellard
Copy link
Owner

bellard commented Dec 27, 2023

fixed

@bellard bellard closed this as completed Dec 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants