mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-03 17:54:33 +03:00
Use generics for makeListProxy properly
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
parent
9ee92823e2
commit
c42039c546
@ -11,7 +11,7 @@
|
||||
class Node {
|
||||
private dom_node *node;
|
||||
prologue %{
|
||||
#define LIST_PROXY_MAGIC MAGIC(LIST_PROXY)
|
||||
|
||||
%};
|
||||
};
|
||||
|
||||
@ -120,7 +120,7 @@ getter Node::childNodes()
|
||||
duk_pop(ctx);
|
||||
exc = dom_node_get_child_nodes(priv->node, &nlist);
|
||||
if (exc != DOM_NO_ERR) return 0;
|
||||
duk_get_global_string(ctx, LIST_PROXY_MAGIC);
|
||||
dukky_push_generics(ctx, "makeListProxy");
|
||||
duk_push_pointer(ctx, nlist);
|
||||
if (dukky_create_object(ctx, PROTO_NAME(NODELIST), 1) != DUK_EXEC_SUCCESS) {
|
||||
dom_nodelist_unref(nlist);
|
||||
|
Loading…
Reference in New Issue
Block a user