Selaa lähdekoodia

fixed return type check for toString()

Nicolas Cannasse 20 vuotta sitten
vanhempi
commit
ee983af7fa
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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";