changeset 83:ac40f4e03e91

Fixed typos in first param to JS_GET_CLASS(), which apparently isn't being used.
author Atul Varma <varmaa@toolness.com>
date Sun, 09 Aug 2009 14:47:35 -0700
parents 9e8e56b4de6f
children 10205d88f6ff
files context.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/context.c	Sun Aug 09 14:42:54 2009 -0700
+++ b/context.c	Sun Aug 09 14:47:35 2009 -0700
@@ -118,7 +118,7 @@
   if (!PyArg_ParseTuple(args, "O!", &PYM_JSObjectType, &object))
     return NULL;
 
-  JSClass *klass = JS_GET_CLASS(cx, object->obj);
+  JSClass *klass = JS_GET_CLASS(self->cx, object->obj);
   if (klass != &PYM_JS_ObjectClass)
     Py_RETURN_NONE;
 
@@ -144,7 +144,7 @@
   if (!PyArg_ParseTuple(args, "O!", &PYM_JSObjectType, &object))
     return NULL;
 
-  JSClass *klass = JS_GET_CLASS(cx, object->obj);
+  JSClass *klass = JS_GET_CLASS(self->cx, object->obj);
   if (klass != &PYM_JS_ObjectClass)
     Py_RETURN_NONE;