-
Sat 2019.03.02
Article - "How ES6 classes work"
Yes, quite nicely done, and was so in response to issues I had with large classes within modules using
require( )
back in October 2018. Those steps helped me pin-point one culprit similarly to:I noticed that from #1 above:
at line 248 col 6
as you have quite a few lines of code, are you using that chunk in a module and have Espruima on perhaps? My issues were resolved by turning minification off. (as ES6 reverts to ES5 under some conditions)
See heading "Using modules and classes" from your #9 link above.
Espruino change log
Release dates
Several enhancements were added between October and January related to ES6 and had me re-flash from 1v94-1v99-2v00-2v01
1v96 has been around for a year and ES6 changes were peppered in current releases. Still in it's infancy.
As @opichals #7 most likely is using a recent release and has indicated:
It looks like an Espruino bug.
It is quite possible that it is just that, or that all nuances of ES6 are just not implemented yet. @Gordon most likely will be the definitive knowledge source here.
I studied Gordon's article and found no contradictions in his code.
Article - "How ES6 classes work"
http://forum.espruino.com/conversations/327037/