setTimeout() broken... not exactly, but if in upload and... #4734
Unanswered
espruino-discuss3
asked this question in
General
Replies: 1 comment
-
Posted at 2015-06-01 by @gfwilliams Not sure what's going on - is the code uploading correctly, or do you have something else saved in Espruino? I just ran all 3, on Pico and original boards using the 1v79 release from the website and got:
Which is exactly what you'd expect? |
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 2015-05-30 by @allObjects
Below three code fragments just work fine - on uploading the code - up and including [1v75]. The setTimeout() happens and calls fE(). Not so though in [v1V79]. All three are broken: setTimeout() is not happening, does not throw any error, and fE() is just not invoked.
Fragment 1:
Fragment 2:
Fragment 3:
The misterious work around below works:
But the work around works only if he extra function is THE onInit() function. If onInit() is renamed to, for example, abc(), it is not working...
???
Beta Was this translation helpful? Give feedback.
All reactions