diff --git a/dmon.c b/dmon.c index 0f37c49..40e8226 100644 --- a/dmon.c +++ b/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) {