Reserve 'typeof' as a keyword

This commit is contained in:
Alexey Tsvetkov
2015-12-09 18:37:31 +03:00
parent 4c3f620255
commit 199827635f
141 changed files with 1126 additions and 1102 deletions
+5 -3
View File
@@ -9,9 +9,6 @@ public val noImpl: Nothing
@native
public fun eval(expr: String): dynamic = noImpl
@native
public fun typeof(a: Any?): String = noImpl
@native
public val undefined: Nothing? = noImpl
@@ -34,3 +31,8 @@ public fun safeParseDouble(s : String) : Double? = noImpl
@native
public fun js(code: String): dynamic = noImpl
/**
* Function corresponding to JavaScript's `typeof` operator
*/
public inline fun jsTypeOf(a: Any?): String = js("typeof a")