Kotlin to JS Errors

Hi

Compiler produces Warning for:

Y:\KotlinPHP\kotlin\DOMEvent.kt:9:47: warning: the expression is unused
infix fun watch(exec: DOMEvent.() → Unit) = exec()
??

The JS code generated runs on Chrome,
it does NOT run on MS Edge!? -produces

Unable to get property ‘DOMEvent’ of undefined or null reference

at runtime

Could you give some more context? A self-contained example would be great.

We don’t have automated tests on Edge at the moment, so might be some incompatibility issue.

Hi
I can prepare an example for you.
Email me …

Thanks! Here is my mail: anton.bannykh@jetbrains.com

Just tested on firefox 58.0 (64bit)
app runs ok!

i’ll prepare the example…

For the record:

We had some discussion over the email, I tried to reproduce the issue and failed, despite having the same version of Chrome and IE. If just worked on my laptop. In the end we never found out what was the exact problem =(

Hello Anton

Thank you for your effort and the reply!
I think this is due to an following error that occurs on Edge’s JS engine
while loading the Bootstrap stuff Im using in the project…
Thus, it seems like a MS problem… :wink:
On Chrome and FF everything works fine!
As soon as my friend brings her MacBook I’ll check Safari & let you know!
If you really want to dig much deeper into this, let me know, I will
prepare the complete package for you then.
It requires a running LAMP stack on the machine…

cheers
Tom