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

Transpilation error on valid JS code with identifiers similar to reserved words. #29

Open
Renegatto opened this issue May 16, 2023 · 0 comments

Comments

@Renegatto
Copy link

Valid JS code

export {
    map,
    void
} from "../Data.Functor/index.js";

causes transpilation error:

Control.Apply
/home/renegatto/castl/bin/castl.js:170
        throw new SyntaxError("Couldn't transpile JS code: " + e);
        ^

SyntaxError: Couldn't transpile JS code: SyntaxError: ./output/Control.Apply/index.js: void is a reserved word (127:4)

The same happens with many of the reserved words.
For example: delete,new,while.

@Renegatto Renegatto changed the title Transpilation error of valid JS code with identifiers similar to reserved words. Transpilation error on valid JS code with identifiers similar to reserved words. May 16, 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

1 participant