diff --git a/js/js.libraries/src/core/debug.kt b/js/js.libraries/src/core/debug.kt index 54000cc79b6..a542b0f5b2d 100644 --- a/js/js.libraries/src/core/debug.kt +++ b/js/js.libraries/src/core/debug.kt @@ -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 -} \ No newline at end of file +val console:Console = noImpl \ No newline at end of file