[JS IR] Move tests for JS code diagnostics

^KT-62425
This commit is contained in:
Alexander Korepanov
2023-10-12 13:14:17 +02:00
committed by Space Team
parent 78aa34b3e8
commit 04809a6b3b
22 changed files with 92 additions and 92 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<!>;")
}