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

Compiler: The following function fails to compile #2434

Open
mariusGundersen opened this issue Nov 22, 2023 · 2 comments
Open

Compiler: The following function fails to compile #2434

mariusGundersen opened this issue Nov 22, 2023 · 2 comments

Comments

@mariusGundersen
Copy link
Contributor

It seems like you have to put something in the third part of a for(;;) loop. The following fails to compile:

function test(input) {
  "compiled";
  for (var i = 0; i < input.length; ) {
    i++;
  }
}
@mariusGundersen
Copy link
Contributor Author

A couple of other things that don't seem to work are return; and a === b.

@gfwilliams gfwilliams changed the title The following function fails to compile JIT: The following function fails to compile Nov 23, 2023
@gfwilliams gfwilliams changed the title JIT: The following function fails to compile Compiler: The following function fails to compile Nov 23, 2023
@gfwilliams
Copy link
Member

Ok, thanks. If you want to make changes, the compiler is at https://github.com/gfwilliams/EspruinoCompiler

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