Sfoglia il codice sorgente

fixed return type check for toString()

Nicolas Cannasse 20 anni fa
parent
commit
ee983af7fa
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      std/flash/Boot.hx

+ 1 - 1
std/flash/Boot.hx

@@ -21,7 +21,7 @@ class Boot {
 					return str;
 				}
 				var s2 = o.toString();
-				if( typeof(s2) == "string" && s2 != "[object Object]" )
+				if( (__typeof__(s2) == "string" || __instanceof__(s2,String)) && s2 != "[object Object]" )
 					return s2;
 				var k;
 				var str = "{\n";