new isfunction api
This commit is contained in:
2
dmon.c
2
dmon.c
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user