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 package js.debug
import js.* import js.noImpl
native // https://developer.mozilla.org/en/DOM/console
val console : consoleClass = js.noImpl native trait Console {
native fun dir(o: Any): Unit = noImpl
native native fun error(vararg o: Any?): Unit = noImpl
class consoleClass() { native fun info(vararg o: Any?): Unit = noImpl
fun log(message : Any?) : Unit = js.noImpl native fun log(vararg o: Any?): Unit = noImpl
native fun warn(vararg o: Any?): Unit = noImpl
} }
native
val console:Console = noImpl