diff options
author | Vincent Sanders <vince@kyllikki.org> | 2012-10-28 15:39:16 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2012-10-28 15:39:16 +0000 |
commit | 2931cd7597b8a41941e5cc3a1f869d36446c6006 (patch) | |
tree | 220ab3794dd1fd3e121b0a3820649e2b9c112e88 | |
parent | e23ade7a1bddd550427e57bd54ac79f4263b3b94 (diff) | |
download | nsgenbind-2931cd7597b8a41941e5cc3a1f869d36446c6006.tar.gz nsgenbind-2931cd7597b8a41941e5cc3a1f869d36446c6006.tar.bz2 |
change to using JSAPI_THIS_OBJECT to pbtain the instance object
-rw-r--r-- | src/jsapi-libdom-operator.c | 4 |
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); |