JS: fix parsing of wrong delete operation in js function.

See KT-15294
This commit is contained in:
Alexey Andreev
2017-09-26 19:26:16 +03:00
parent bad50c03a7
commit 0269c3309a
6 changed files with 33 additions and 5 deletions
@@ -0,0 +1,8 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
fun foo(x: Any) {
js("delete x.foo;")
js("delete x['bar'];")
js("delete x.baz<!JSCODE_ERROR!>()<!>;")
js("delete <!JSCODE_ERROR!>this<!>;")
}
@@ -0,0 +1,3 @@
package
public fun foo(/*0*/ x: kotlin.Any): kotlin.Unit