Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
NeeEoo opened this issue Apr 25, 2024 · 0 comments · May be fixed by #1104
Open

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

NeeEoo opened this issue Apr 25, 2024 · 0 comments · May be fixed by #1104

Comments

@NeeEoo
Copy link

NeeEoo commented Apr 25, 2024

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.

@NeeEoo NeeEoo linked a pull request Apr 25, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant