summaryrefslogtreecommitdiff
path: root/src/duk-libdom.c
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2015-08-09 18:54:59 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2015-08-09 18:54:59 +0100
commit63745977ad219ca9474462268651f77e49218956 (patch)
treefcd48e9ef28a12ca64cde4fb500aa8d6333e6911 /src/duk-libdom.c
parentdb093c63971ef67593199717dc6f39d4d6aa3eff (diff)
downloadnsgenbind-63745977ad219ca9474462268651f77e49218956.tar.gz
nsgenbind-63745977ad219ca9474462268651f77e49218956.tar.bz2
Properly inject interface prototypes
Diffstat (limited to 'src/duk-libdom.c')
-rw-r--r--src/duk-libdom.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/duk-libdom.c b/src/duk-libdom.c
index 5fbd33f..f54deef 100644
--- a/src/duk-libdom.c
+++ b/src/duk-libdom.c
@@ -868,11 +868,13 @@ output_interface_prototype(FILE* outf,
struct interface_map_entry *interfacep;
interfacep = interface_map->entries + idx;
- if (interfacep == interfacee) continue;
if (interfacep->noobject) continue;
- output_get_prototype(outf, interfacep->name);
+ if (interfacep == interfacee)
+ fprintf(outf, "\tduk_dup(ctx, 0);\n");
+ else
+ output_get_prototype(outf, interfacep->name);
fprintf(outf,
- "\tduk_put_prop_string(ctx, 0, \"%s\");\n",
+ "\tdukky_inject_not_ctr(ctx, 0, \"%s\");\n",
interfacep->name);
}
}