JS: when translating content of js() function, rename all free references if they point to Kotlin local variable with the same name. See KT-15212

This commit is contained in:
Alexey Andreev
2016-12-16 17:32:59 +03:00
committed by Alexey Andreev
parent 5ee61702ee
commit 22ff7c6c45
12 changed files with 243 additions and 40 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ public external fun js(code: String): dynamic = noImpl
/**
* Function corresponding to JavaScript's `typeof` operator
*/
public inline fun jsTypeOf(a: Any?): String = js("Kotlin").jsTypeOf(a)
public inline fun jsTypeOf(a: Any?): String = js("typeof a")
@library
internal fun deleteProperty(`object`: Any, property: Any): Unit = noImpl