mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
setTimeout: A more sensibel assert
This commit is contained in:
parent
a1866332d3
commit
74997f772c
@ -308,7 +308,7 @@ ecmascript_timeout_handler(void *i)
|
|||||||
{
|
{
|
||||||
struct ecmascript_interpreter *interpreter = i;
|
struct ecmascript_interpreter *interpreter = i;
|
||||||
|
|
||||||
assert(interpreter->vs->doc_view->document);
|
assertm(interpreter->vs->doc_view, "setTimeout: vs with no document (e_f %d)", interpreter->vs->doc_view);
|
||||||
interpreter->vs->doc_view->document->timeout = TIMER_ID_UNDEF;
|
interpreter->vs->doc_view->document->timeout = TIMER_ID_UNDEF;
|
||||||
|
|
||||||
ecmascript_eval(interpreter, &interpreter->code, NULL);
|
ecmascript_eval(interpreter, &interpreter->code, NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user