From 47a8ff060dadd24726dad25e62448600d41ea2c4 Mon Sep 17 00:00:00 2001 From: develar Date: Sat, 9 Jun 2012 15:00:23 +0400 Subject: [PATCH] KT-2137 console --- js/js.libraries/src/core/debug.kt | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) 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