HaxeFoundation / hxcpp

Runtime files for c++ backend for haxe
Other
295 stars 184 forks source link

Reflect.field(String, "fromCharCode") doesnt work #1103

Open NeeEoo opened 4 months ago

NeeEoo commented 4 months ago

https://github.com/HaxeFoundation/hxcpp/blob/master/src/String.cpp#L2176 Hxcpp implementation of String is missing this

bool String::__GetStatic(const ::String &inName, Dynamic &outValue, ::hx::PropertyAccess inCallProp)
{
    if (HX_FIELD_EQ(inName,"fromCharCode") ) { outValue = fromCharCode_dyn(); return true; }
    return false;
}

which causes String.fromCharCode to not work on reflection.