jit: Function argument in ternary #6306
Unanswered
espruino-discuss2
asked this question in
Bangle.js
Replies: 1 comment
-
Posted at 2023-10-20 by @gfwilliams Thanks for tracking this down to just the one expression - that makes my life much easier! I've just looked into this and it's definitely a bug - I've got a fix in now, so if you install the latest cutting edge build it should work! Posted at 2023-10-20 by user140377 Cool, thanks. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2023-10-20 by user140377
According to the documentation the ternary operator is supported in the jit, but it fails in this minimal example on latest firmware:
I get the following error:
Without the "jit" string the function works as expected. Also assigning the argument to a temporary variable does:
1
Is this a bug or is it me doing something wrong?
Beta Was this translation helpful? Give feedback.
All reactions