Explorar el Código

fixed return type check for toString()

Nicolas Cannasse hace 20 años
padre
commit
ee983af7fa
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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";