1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[quickjs] Execute pending jobs

There are not pending jobs yet, but preparing for it.
This commit is contained in:
Witold Filipczyk 2024-07-07 16:18:32 +02:00
parent 53da0cf2f6
commit f847c253f9

View File

@ -285,6 +285,21 @@ run_jobs(void *data)
struct ecmascript_interpreter *interpreter = (struct ecmascript_interpreter *)data;
js::RunJobs((JSContext *)interpreter->backend_data);
#endif
#ifdef CONFIG_QUICKJS
struct ecmascript_interpreter *interpreter = (struct ecmascript_interpreter *)data;
JSContext *ctx = (JSContext *)interpreter->backend_data;
JSContext *ctx1;
int err;
/* execute the pending jobs */
for(;;) {
err = JS_ExecutePendingJob(JS_GetRuntime(ctx), &ctx1);
if (err <= 0) {
break;
}
}
#endif
}
void