HaxeFoundation / hxcpp

Runtime files for c++ backend for haxe
Other
297 stars 189 forks source link

Fixed String.fromCharCode when using reflection #1104

Open NeeEoo opened 6 months ago

NeeEoo commented 6 months ago

Fixes #1103

Sorry if the code is bad, i don't know the proper way to do this. Feel free to edit this pr.

try {
    Reflect.callMethod(null, Reflect.field(String, "fromCharCode"), [65]);
    Sys.println("String.fromCharCode works from reflect.");
} catch(e:Dynamic) {
    Sys.println("[ERROR] String.fromCharCode doesn't work from reflect.");
}
MAJigsaw77 commented 1 week ago

Any progress on merging this?