summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2012-10-28 15:39:16 +0000
committerVincent Sanders <vince@kyllikki.org>2012-10-28 15:39:16 +0000
commit2931cd7597b8a41941e5cc3a1f869d36446c6006 (patch)
tree220ab3794dd1fd3e121b0a3820649e2b9c112e88 /src
parente23ade7a1bddd550427e57bd54ac79f4263b3b94 (diff)
downloadnsgenbind-2931cd7597b8a41941e5cc3a1f869d36446c6006.tar.gz
nsgenbind-2931cd7597b8a41941e5cc3a1f869d36446c6006.tar.bz2
change to using JSAPI_THIS_OBJECT to pbtain the instance object
Diffstat (limited to 'src')
-rw-r--r--src/jsapi-libdom-operator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jsapi-libdom-operator.c b/src/jsapi-libdom-operator.c
index e0923dd..5119a4e 100644
--- a/src/jsapi-libdom-operator.c
+++ b/src/jsapi-libdom-operator.c
@@ -360,9 +360,9 @@ static int webidl_operator_body_cb(struct webidl_node *node, void *ctx)
fprintf(binding->outfile,
"\n"
"\tprivate = JS_GetInstancePrivate(cx,\n"
- "\t\t\tJS_THIS_OBJECT(cx,vp),\n"
+ "\t\t\tJSAPI_THIS_OBJECT(cx,vp),\n"
"\t\t\t&JSClass_%s,\n"
- "\t\t\tNULL);\n"
+ "\t\t\targv);\n"
"\tif (private == NULL)\n"
"\t\treturn JS_FALSE;\n\n",
binding->interface);