From c42039c546d20c8734318eed04da3a478bfe0cac Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sun, 19 May 2019 15:27:04 +0100 Subject: Use generics for makeListProxy properly Signed-off-by: Daniel Silverstone --- content/handlers/javascript/duktape/Node.bnd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'content') diff --git a/content/handlers/javascript/duktape/Node.bnd b/content/handlers/javascript/duktape/Node.bnd index ce9125d47..98fb5dd7c 100644 --- a/content/handlers/javascript/duktape/Node.bnd +++ b/content/handlers/javascript/duktape/Node.bnd @@ -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); -- cgit v1.2.3