Fix hanling module names that require escaping

This commit is contained in:
Svyatoslav Kuzmich
2019-04-23 23:25:12 +03:00
parent c3a439a829
commit e30bdb8dc9
7 changed files with 102 additions and 7 deletions
@@ -0,0 +1,15 @@
// IGNORE_BACKEND: JS
// EXPECTED_REACHABLE_NODES: 1270
// SKIP_MINIFICATION
// RUN_PLAIN_BOX_FUNCTION
// INFER_MAIN_MODULE
// MODULE: if
// FILE: lib.kt
@JsName("foo")
public fun foo(k: String): String = "O$k"
// FILE: test.js
function box() {
return this["if"].foo("K");
}