new isfunction api:

This commit is contained in:
2026-01-26 11:48:15 -06:00
parent 6c07f11992
commit f310c18b84
2 changed files with 2 additions and 2 deletions

View File

@@ -239,7 +239,7 @@ JSC_SCALL(imgui_text, ImGui::Text("%s", str) )
JSC_SCALL(imgui_button,
bool gogo = ImGui::Button(str);
if (gogo && JS_IsFunction(js, argv[1]))
if (gogo && JS_IsFunction(argv[1]))
JS_Call(js, argv[1], JS_NULL, 0, NULL);
ret = JS_NewBool(js, gogo);
)