# HG changeset patch # User Atul Varma # Date 1249854455 25200 # Node ID ac40f4e03e91ef7204883a833f0f5c39a7a218a5 # Parent 9e8e56b4de6fc83f77a684dd813af5bb9dba5e93 Fixed typos in first param to JS_GET_CLASS(), which apparently isn't being used. diff -r 9e8e56b4de6f -r ac40f4e03e91 context.c --- 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;