KT-2137 console
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user