Browse Source

[js] don't check for __enum__ on Array when enums are not arrays (the new ones)

Dan Korostelev 6 years ago
parent
commit
4eefb97959
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/js/Boot.hx

+ 1 - 1
std/js/Boot.hx

@@ -185,7 +185,7 @@ class Boot {
 		case String:
 		case String:
 			return js.Syntax.typeof(o) == "string";
 			return js.Syntax.typeof(o) == "string";
 		case Array:
 		case Array:
-			return js.Syntax.instanceof(o, Array) && o.__enum__ == null;
+			return js.Syntax.instanceof(o, Array) #if js_enums_as_arrays && o.__enum__ == null #end;
 		case Dynamic:
 		case Dynamic:
 			return o != null;
 			return o != null;
 		default:
 		default: