Explorar el Código

Make sure that console is available

Nicolas Petton hace 13 años
padre
commit
e6db8eeddb
Se han modificado 1 ficheros con 13 adiciones y 0 borrados
  1. 13 0
      js/boot.js

+ 13 - 0
js/boot.js

@@ -33,6 +33,19 @@
    |
    ==================================================================== */
 
+/* Make that console is available */
+
+if (typeof console == "undefined") {
+    this.console = {
+	log: function() {},
+	warn: function() {},
+	info: function() {},
+	debug: function() {},
+	error: function() {},
+    };
+}
+
+
 /* Smalltalk constructors definition */
 
 function SmalltalkObject(){};