switch (Type.typeof(d)) {
case TNull : o.writeByte(0xc0);
case TBool : o.writeByte(d ? 0xc3 : 0xc2);
case TInt : writeInt(d);
case TFloat : writeFloat(d);
case TClass(c):
var __name=Type.getClassName(c);//I extra add this helper to avoid bug.
var _name=Std.string(__name)=="true"?"String":__name;//why sometime _name==true?
target js and use Vue webpack.
don’t know why some time Type.getClassName(c) =true?
Are you using a haxe-compiled js module in another haxe-compiled js module? Because Haxe/JS generates __name__ = true instead of the full name if Type.getClassName is not used in the current compilation, just to mark that it’s a Haxe class and not some random JS function.