[gjs] coverage: Ensure request for get_covered_files



commit ed03f1ca40c966f1a6261086ba3e36bce577a344
Author: Sam Spilsbury <smspillaz gmail com>
Date:   Sat Jun 13 10:38:33 2015 +0800

    coverage: Ensure request for get_covered_files

 gjs/coverage.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gjs/coverage.cpp b/gjs/coverage.cpp
index 2e2e2fc..8d8b595 100644
--- a/gjs/coverage.cpp
+++ b/gjs/coverage.cpp
@@ -845,6 +845,8 @@ get_covered_files(GjsCoverage *coverage)
 {
     GjsCoveragePrivate *priv = (GjsCoveragePrivate *) gjs_coverage_get_instance_private(coverage);
     JSContext *context = (JSContext *) gjs_context_get_native_context(priv->context);
+    JSAutoRequest ar(context);
+    JSAutoCompartment ac(context, priv->coverage_statistics);
     jsval rval;
     JSObject *files_obj;
 


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