diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2015-08-09 18:54:59 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2015-08-09 18:54:59 +0100 |
commit | 63745977ad219ca9474462268651f77e49218956 (patch) | |
tree | fcd48e9ef28a12ca64cde4fb500aa8d6333e6911 | |
parent | db093c63971ef67593199717dc6f39d4d6aa3eff (diff) | |
download | nsgenbind-63745977ad219ca9474462268651f77e49218956.tar.gz nsgenbind-63745977ad219ca9474462268651f77e49218956.tar.bz2 |
Properly inject interface prototypes
-rw-r--r-- | src/duk-libdom.c | 8 |
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); } } |