Reserve 'typeof' as a keyword
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user