JS: fix crash when js function contains assignment with bad LHS

Fix KT-20905
This commit is contained in:
Alexey Andreev
2017-10-23 16:07:26 +03:00
parent a11cf253df
commit a6e98c30d7
4 changed files with 14 additions and 7 deletions
@@ -0,0 +1,4 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
fun Int.foo(x: Int) {
js("this = x<!JSCODE_ERROR!><!>;")
}
@@ -0,0 +1,3 @@
package
public fun kotlin.Int.foo(/*0*/ x: kotlin.Int): kotlin.Unit