Mercurial > pymonkey
diff context.c @ 70:b0360c0ed546
Factored the JS FunctionHolder class into the JS PymonkeyObject class, so that any PymonkeyObject can contain a private Python object if it needs to.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Mon, 27 Jul 2009 04:47:33 -0700 |
parents | b5160c82be65 |
children | 9b3f4e53e365 |
line wrap: on
line diff
--- a/context.c Sun Jul 26 16:44:12 2009 -0700 +++ b/context.c Mon Jul 27 04:47:33 2009 -0700 @@ -113,9 +113,9 @@ static PyObject * PYM_newObject(PYM_JSContextObject *self, PyObject *args) { - JSObject *obj = JS_NewObject(self->cx, &PYM_JS_ObjectClass, NULL, NULL); + JSObject *obj = PYM_JS_newObject(self->cx, NULL); if (obj == NULL) { - PyErr_SetString(PYM_error, "JS_NewObject() failed"); + PyErr_SetString(PYM_error, "PYM_JS_newObject() failed"); return NULL; }