Alfred Lopez
09/30/2021, 4:08 PMconst kotlin = require("kotlin");
...
let identityContext = new kotlin.kotlin.collections.LinkedHashMap()
identityContext.put("mYKey","myValue");
but when I run this, I get the following error:
TypeError: identityContext.put is not a function
When I look at kotlin.js, I see the following definition of "put":
LinkedHashMap.prototype.put_xwzc9p$ = function (key, value)
I see that LinkedHashMap is an expect class, so I assumed that there's a JavaScript accept class with proper @JsName declarations. Is this not the case? Do I need to use the mangled function name?
ThanksCLOVIS
09/30/2021, 5:06 PMCLOVIS
09/30/2021, 5:06 PMAlfred Lopez
09/30/2021, 5:08 PMCLOVIS
09/30/2021, 5:13 PMput
for other List implementations?Alfred Lopez
09/30/2021, 5:13 PM