doesn't Espruino/Bangle.js support getters and setters? #1353
Replies: 6 comments
-
Posted at 2020-01-15 by @MaBecker Which code produced that error? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-01-15 by Andreas_Rozek After some (purely syntactical) experiments, I found that getters/setters within IIFEs seem to be the problem. When trying
(edited in the right section of the Espruino IDE, then uploaded to my Bangle.js) the So, IIFEs seem to have their own (inner) capabilities? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-01-15 by @gfwilliams There's a features list at http://www.espruino.com/Features Looks like this is to do with the 'pretokenise' feature I turned on in Bangle.js to save a bit of RAM. If you add 'E.setFlags({pretokenise:0})' before uploading your code then it'll be fine edit: filed issue here: espruino/Espruino#1745 |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-01-15 by Andreas_Rozek Thank you very much - that feature list is very helpful! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-01-16 by @gfwilliams fixed now |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-01-16 by Andreas_Rozek Great! Thanks a lot for your effort! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-01-15 by Andreas_Rozek
Good morning!
I just tried to use JavaScript getters and setters, but got the response:
If getters and setters are unsupported, is there some documentation which defines the supported JavaScript features?
Beta Was this translation helpful? Give feedback.
All reactions