oh the problem was `lateinit` obviously lateinit a...
# javascript
t
oh the problem was
lateinit
obviously lateinit and jsname doesnt work together
s
Should work. Look for
Copy code
Object.defineProperty(YourClass.prototype, 'YourJsName', {
t
yeah true, yet when serializing it to json the property name was still wrong
OTOH i was very tired when asking here, maybe there wasn;t any problem in the end - i will have a look again later today\
s
Sadly
JSON.stringify()
doesn’t use not-owned properties. Its a common problem for all prototype-based JS code. There are workarounds like using custom
toJSON()
method or something like: https://www.npmjs.com/package/flatten-prototypes