[gjs] context: Fix a test failure when SpiderMonkey is in debug mode



commit 266ef8c75265cd673a099300005f1b75f8a35022
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Jan 29 17:44:19 2014 -0500

    context: Fix a test failure when SpiderMonkey is in debug mode

 gjs/context.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gjs/context.cpp b/gjs/context.cpp
index a8907f0..fbfa9a9 100644
--- a/gjs/context.cpp
+++ b/gjs/context.cpp
@@ -594,6 +594,7 @@ gjs_context_eval(GjsContext   *js_context,
     jsval retval;
 
     JSAutoCompartment ac(js_context->context, js_context->global);
+    JSAutoRequest ar(js_context->context);
 
     g_object_ref(G_OBJECT(js_context));
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]