Browse Source

[Swf9] print "undefined" as "null"

Simon Krajewski 12 years ago
parent
commit
9a14689f65
1 changed files with 2 additions and 1 deletions
  1. 2 1
      std/flash/Boot.hx

+ 2 - 1
std/flash/Boot.hx

@@ -191,10 +191,11 @@ class Boot extends flash.display.MovieClip {
 					s += ",";
 				s += __string_rec(a[i],str);
 			}
-			return s+"]";
+			return s + "]";
 		default:
 			switch( untyped __typeof__(v) ) {
 			case "function": return "<function>";
+			case "undefined": return "null";
 			}
 		}
 		return new String(v);