From 2931cd7597b8a41941e5cc3a1f869d36446c6006 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 28 Oct 2012 15:39:16 +0000 Subject: change to using JSAPI_THIS_OBJECT to pbtain the instance object --- src/jsapi-libdom-operator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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); -- cgit v1.2.3