KT-2137 console

This commit is contained in:
develar
2012-06-09 15:00:23 +04:00
parent 99614d5e14
commit 47a8ff060d
+11 -7
View File
@@ -1,11 +1,15 @@
package js.debug
import js.*
import js.noImpl
// https://developer.mozilla.org/en/DOM/console
native trait Console {
native fun dir(o: Any): Unit = noImpl
native fun error(vararg o: Any?): Unit = noImpl
native fun info(vararg o: Any?): Unit = noImpl
native fun log(vararg o: Any?): Unit = noImpl
native fun warn(vararg o: Any?): Unit = noImpl
}
native
val console : consoleClass = js.noImpl
native
class consoleClass() {
fun log(message : Any?) : Unit = js.noImpl
}
val console:Console = noImpl