diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-05-05 21:53:08 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-05-05 22:17:10 +0100 |
commit | 8b4ec11b8958b7b7893d2b0f6aad20b2ddc3599f (patch) | |
tree | d7cf6aee20d37e59f7f7b747621d3fd9c6b8a3dc /content/handlers/javascript/duktape/Document.bnd | |
parent | 8474c5d4c0b59e74e2ef001b5033b78d7a99fcad (diff) | |
download | netsurf-8b4ec11b8958b7b7893d2b0f6aad20b2ddc3599f.tar.gz netsurf-8b4ec11b8958b7b7893d2b0f6aad20b2ddc3599f.tar.bz2 |
Dukky: Change from specifically named generics
Instead of specifically having to extract each generic by name,
such as makeListProxy, instead support the entire generics table
and use `dukky_push_generics()` to gain access to it.
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'content/handlers/javascript/duktape/Document.bnd')
-rw-r--r-- | content/handlers/javascript/duktape/Document.bnd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/content/handlers/javascript/duktape/Document.bnd b/content/handlers/javascript/duktape/Document.bnd index d27591759..9c63a61c4 100644 --- a/content/handlers/javascript/duktape/Document.bnd +++ b/content/handlers/javascript/duktape/Document.bnd @@ -18,7 +18,7 @@ prologue Document() #include "content/urldb.h" #define HANDLER_MAGIC MAGIC(HANDLER_MAP) -#define LIST_PROXY_MAGIC MAGIC(LIST_PROXY) +#define GENERICS_MAGIC MAGIC(GENERICS_TABLE) %} @@ -345,7 +345,7 @@ method Document::getElementsByTagName() if (nodes == NULL) return 0; /* coerced to undefined */ - duk_get_global_string(ctx, LIST_PROXY_MAGIC); + dukky_push_generics(ctx, "makeListProxy"); duk_push_pointer(ctx, nodes); dukky_create_object(ctx, PROTO_NAME(NODELIST), 1); |