changeset 72:cd545c03eeef

Got rid of our one call to JS_BeginRequest()/JS_EndRequest(), since we're not really paying attention to it at the moment anyways.
author Atul Varma <varmaa@toolness.com>
date Mon, 27 Jul 2009 21:53:43 -0700
parents 9b3f4e53e365
children efa0cfe6fc03
files context.c
diffstat 1 files changed, 0 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/context.c	Mon Jul 27 21:44:08 2009 -0700
+++ b/context.c	Mon Jul 27 21:53:43 2009 -0700
@@ -235,8 +235,6 @@
                         &source, &sourceLen, &filename, &lineNo))
     return NULL;
 
-  JS_BeginRequest(self->cx);
-
   jsval rval;
   JSBool result;
   Py_BEGIN_ALLOW_THREADS;
@@ -246,14 +244,10 @@
 
   if (!result) {
     PYM_jsExceptionToPython(self);
-    JS_EndRequest(self->cx);
     return NULL;
   }
 
   PyObject *pyRval = PYM_jsvalToPyObject(self, rval);
-
-  JS_EndRequest(self->cx);
-
   return pyRval;
 }