1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-30 03:26:23 -04:00

[spdermonkey] init list of listeners in document

This commit is contained in:
Witold Filipczyk 2024-03-04 21:24:28 +01:00
parent b5b09f1ba1
commit 8e8d9df4d6

View File

@ -2078,6 +2078,9 @@ getDocument(JSContext *ctx, void *doc)
if (!doc_private) { if (!doc_private) {
return NULL; return NULL;
} }
init_list(doc_private->listeners);
doc_private->ref_count = 1;
JSObject *el = JS_NewObject(ctx, &document_class); JSObject *el = JS_NewObject(ctx, &document_class);
if (!el) { if (!el) {