From 63745977ad219ca9474462268651f77e49218956 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sun, 9 Aug 2015 18:54:59 +0100 Subject: Properly inject interface prototypes --- src/duk-libdom.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/duk-libdom.c') 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); } } -- cgit v1.2.3