Browse Source

Make sure that console is available

Nicolas Petton 13 years ago
parent
commit
e6db8eeddb
1 changed files with 13 additions and 0 deletions
  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(){};