Closed gfwilliams closed 3 months ago
This got added in 2v22, but there seem to be issues. Getters:
class Foo { static get CH0() { return 0xdeadbeef; } constructor() { print('nothing to see here') } }
And even standard
class Foo { static TEST = 5 constructor() { print('nothing to see here') } }
doesn't seem to work. You can trace(Foo) and not see anything. https://forum.espruino.com/conversations/397119/#comment17421196
trace(Foo)
Fixed - turns out if you add the static vars after the constructor it's fine.
static
This got added in 2v22, but there seem to be issues. Getters:
And even standard
doesn't seem to work. You can
trace(Foo)
and not see anything. https://forum.espruino.com/conversations/397119/#comment17421196