Commit 89b6c0e3 authored by Andrew Price's avatar Andrew Price
Browse files

duktape: Implement js_isrunning()

duktape has no equivalent of JS_IsRunning() so use the state of the
timeout tracking bits to approximate it.
parent 5bf2bef8
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -612,7 +612,7 @@ static duk_ret_t js_dbquery(duk_context *cx)

int js_isrunning(void)
{
	return 0;
	return (interrupt == 0 && timeout_event != NULL);
}

int js_exec(char *name, int argc, const char **argv)