summaryrefslogtreecommitdiff
path: root/content/handlers/javascript
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2019-05-19 15:26:49 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2019-05-25 16:13:57 +0100
commit9ee92823e2a3890e526faf8956916c6fd987958a (patch)
treea056714f0fe8ed4fc5808fc4e3f5193e3e0041f3 /content/handlers/javascript
parent78385629c3c6ad95b76ae494d8d9e683dc239216 (diff)
downloadnetsurf-9ee92823e2a3890e526faf8956916c6fd987958a.tar.gz
netsurf-9ee92823e2a3890e526faf8956916c6fd987958a.tar.bz2
Use generics for makeListProxy properly
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'content/handlers/javascript')
-rw-r--r--content/handlers/javascript/duktape/Element.bnd3
1 files changed, 1 insertions, 2 deletions
diff --git a/content/handlers/javascript/duktape/Element.bnd b/content/handlers/javascript/duktape/Element.bnd
index 5e36a5090..33fc0863e 100644
--- a/content/handlers/javascript/duktape/Element.bnd
+++ b/content/handlers/javascript/duktape/Element.bnd
@@ -11,7 +11,6 @@
class Element {
prologue %{
#include <utils/corestrings.h>
-#define LIST_PROXY_MAGIC MAGIC(LIST_PROXY)
%};
};
@@ -206,7 +205,7 @@ method Element::getElementsByTagName ()
dom_string_unref(tagname);
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);
dukky_create_object(ctx, PROTO_NAME(NODELIST), 1);