Mercurial > pymonkey
comparison function.c @ 44:0b9a316ce4ef
Changed function signature of PYM_pyObjectToJsval() to be consistent w/ the rest of the API.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Sun, 05 Jul 2009 23:55:42 -0700 |
parents | 5727675b1bcb |
children | a0f677cfc679 |
comparison
equal
deleted
inserted
replaced
43:5727675b1bcb | 44:0b9a316ce4ef |
---|---|
45 // TODO: Get the actual exception. | 45 // TODO: Get the actual exception. |
46 JS_ReportError(cx, "Python function failed."); | 46 JS_ReportError(cx, "Python function failed."); |
47 return JS_FALSE; | 47 return JS_FALSE; |
48 } | 48 } |
49 | 49 |
50 int error = PYM_pyObjectToJsval(cx, result, rval); | 50 int error = PYM_pyObjectToJsval(context, result, rval); |
51 Py_DECREF(result); | 51 Py_DECREF(result); |
52 | 52 |
53 if (error) { | 53 if (error) { |
54 // TODO: Get the actual exception. | 54 // TODO: Get the actual exception. |
55 JS_ReportError(cx, "Python function failed."); | 55 JS_ReportError(cx, "Python function failed."); |