Hi everyone! Is there a way to add `enumerable: tr...
# javascript
f
Hi everyone! Is there a way to add
enumerable: true
to the descriptor when getters are compiled to JS? (see
Object.defineProperty
documentation https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty#Enumerable_attribute)
b
Unfortunately, right now you can change it only by rewriting generated code. Please create an issue with your usecases kotl.in/issue
f
Thanks for the answer @bashor. Sure, I’ll create an issue.
b
Notes: simple properties, w/o accessors, are enumerable, properties with accessors are written to class prototype
f
Right, I’m only hitting the issue with properties with accessors
b
thank you