[gjs] coverage: add missing request



commit 5e0248c9948c8268763501489ff870acfe905e5f
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Tue Feb 18 17:57:27 2014 +0100

    coverage: add missing request
    
    Spotted by running the tests with a libmozjs compiled with
    JS_DEBUG and JS_THREADSAFE.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=724668

 gjs/coverage.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gjs/coverage.cpp b/gjs/coverage.cpp
index 5d0b4fd..f3c0980 100644
--- a/gjs/coverage.cpp
+++ b/gjs/coverage.cpp
@@ -829,6 +829,7 @@ print_statistics_for_file(GjsCoverage   *coverage,
 
     JSContext *context = (JSContext *) gjs_context_get_native_context(priv->context);
     JSAutoCompartment compartment(context, priv->coverage_statistics);
+    JSAutoRequest ar(context);
 
     JSString *filename_jsstr = JS_NewStringCopyZ(context, filename);
     jsval    filename_jsval = STRING_TO_JSVAL(filename_jsstr);


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