new isfunction api

This commit is contained in:
2026-01-26 20:14:19 -06:00
parent c11e450b84
commit caf66968ed

2
dmon.c
View File

@@ -89,7 +89,7 @@ JSValue js_dmon_unwatch(JSContext *js, JSValue self, int argc, JSValue *argv)
JSValue js_dmon_poll(JSContext *js, JSValueConst this_val, int argc, JSValueConst *argv) {
FileEvent event;
while (dequeue_event(&event)) {
if (!JS_IsFunction(js, argv[0])) continue;
if (!JS_IsFunction(argv[0])) continue;
JSValue jsevent = JS_NewObject(js);
JSValue action;
switch(event.action) {