the logic, like in other places is that if something has __enum__ then it is an enum, so has_enum feature is on, so $hxEnums gets generated
@@ -210,7 +210,7 @@ class Boot {
#if js_enums_as_arrays
return o.__enum__ == cl;
#else
- return (untyped $hxEnums[o.__enum__]) == cl;
+ return if (o.__enum__ != null) (untyped $hxEnums[o.__enum__]) == cl else false;
#end
}