Eugen Martynov
05/06/2025, 7:03 PMName contains illegal chars that can't appear in JavaScript identifier
?ian.shaun.thomas
05/06/2025, 7:04 PMEugen Martynov
05/06/2025, 7:05 PMian.shaun.thomas
05/06/2025, 7:05 PM@JsName
to work around it? I haven't tried that though.Eugen Martynov
05/06/2025, 7:13 PMEugen Martynov
05/06/2025, 7:13 PMian.shaun.thomas
05/06/2025, 7:13 PMEugen Martynov
05/06/2025, 7:14 PMEugen Martynov
05/06/2025, 7:16 PMEdoardo Luppi
05/06/2025, 7:47 PMEugen Martynov
05/06/2025, 7:48 PMEdoardo Luppi
05/06/2025, 7:49 PMEugen Martynov
05/06/2025, 7:52 PMEugen Martynov
05/06/2025, 7:53 PMfun `Test something is happening here` () {}
Eugen Martynov
05/06/2025, 7:53 PMEdoardo Luppi
05/06/2025, 7:54 PMEugen Martynov
05/06/2025, 7:54 PMArtem Kobzar
05/07/2025, 4:34 AMArtem Kobzar
05/07/2025, 4:37 AM"-XXLanguage:+JsAllowInvalidCharsIdentifiersEscaping"
Eugen Martynov
05/07/2025, 7:29 AMArtem Kobzar
05/07/2025, 8:55 AMArtem Kobzar
05/07/2025, 8:56 AMEugen Martynov
05/07/2025, 9:20 AMEugen Martynov
05/07/2025, 9:21 AMEugen Martynov
05/07/2025, 9:22 AMEugen Martynov
05/07/2025, 9:22 AMEdoardo Luppi
05/07/2025, 9:23 AMcompilerOptions {
apiVersion.set(KotlinVersion.KOTLIN_1_9)
languageVersion.set(KotlinVersion.KOTLIN_1_9)
}
in your build config. I forget about that frequently.Eugen Martynov
05/07/2025, 9:23 AMEugen Martynov
05/07/2025, 9:24 AMEugen Martynov
05/07/2025, 9:24 AMian.shaun.thomas
05/07/2025, 2:50 PMEdoardo Luppi
05/07/2025, 3:20 PMAll I can find is a statement that it fixes the issue but what does it actually do?It transforms the code into something like:
instance['method name with spaces'] = function ...
Artem Kobzar
05/07/2025, 4:11 PMmethod_name_with_spaces
(and eliminating clashes with the same named member): https://pl.kotl.in/3pXKkyGRSEdoardo Luppi
05/07/2025, 4:12 PMEdoardo Luppi
05/07/2025, 4:14 PMArtem Kobzar
05/07/2025, 4:16 PMEdoardo Luppi
05/07/2025, 4:19 PM