Use generics for makeListProxy properly

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
Daniel Silverstone 2019-05-19 15:27:04 +01:00
parent 9ee92823e2
commit c42039c546
1 changed files with 2 additions and 2 deletions

View File

@ -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);