-
Notifications
You must be signed in to change notification settings - Fork 31
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
JS backend ignores first command line argument #318
Comments
effekt/libraries/js/io/args.effekt Line 7 in 2e865ae
This should be a 1 probably? |
Excerpt from:
Also the docs on
Also
evaluates to
which is what we would expect. |
This seems related to us typically using
whereas Contents of
and
|
The other part of the problem seems to be #319. |
I propose the following fix:
|
There might be a tiny problem that the website could potentially rely on the exports, we have to double check that. We really need more automated tests for LSP and the website. |
Another related problem is that we use an absolute path here:
Moving the js file and the "binary" will not work (/cc @dvdvgt) |
The runnables created for the JS backend always ignore the first command line argument.
Minimal Example
When compiling and running
with the js backend:
we get:
Which ignores the
1
.Note: I thought we had an issue for that already, but could not find it. If you do, feel free to link and close.
The text was updated successfully, but these errors were encountered: