JS declarations: added eval, typeof, undefined.

#KT-4136 Fixed
This commit is contained in:
Zalim Bashorov
2014-12-24 16:02:13 +03:00
parent 0988d6cace
commit 9ab045e598
14 changed files with 81 additions and 60 deletions
@@ -9,8 +9,6 @@ public trait B : A {
}
}
native fun eval(code: String): Any = noImpl
native val undefined: Any = noImpl
native class Function(vararg args: String)
val hasProp = Function("obj, prop", "return obj[prop] !== undefined") as ((Any, String) -> Boolean)