[gjs] coverage: s/Warning/warning/



commit a06b61e03bf8cb7bc2ec23a73d8021e8fd53866c
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Feb 3 13:17:19 2014 -0500

    coverage: s/Warning/warning/
    
    This should be lower-case

 gjs/coverage.cpp    |    6 +++---
 modules/coverage.js |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gjs/coverage.cpp b/gjs/coverage.cpp
index 38ed530..9bacc70 100644
--- a/gjs/coverage.cpp
+++ b/gjs/coverage.cpp
@@ -1079,7 +1079,7 @@ coverage_warning(JSContext *context,
     JSString *jstr;
 
     if (argc != 1) {
-        gjs_throw(context, "Must pass a single argument to Warning()");
+        gjs_throw(context, "Must pass a single argument to warning()");
         return JS_FALSE;
     }
 
@@ -1158,10 +1158,10 @@ bootstrap_coverage(GjsCoverage *coverage)
         }
 
         if (!JS_DefineFunction(context, debugger_compartment,
-                               "Warning",
+                               "warning",
                                (JSNative) coverage_warning,
                                1, GJS_MODULE_PROP_FLAGS))
-            g_error("Failed to define log function");
+            g_error("Failed to define warning function");
 
         if (!gjs_context_eval_file_in_compartment(priv->context,
                                                   coverage_script,
diff --git a/modules/coverage.js b/modules/coverage.js
index bd5a4c5..44032f4 100644
--- a/modules/coverage.js
+++ b/modules/coverage.js
@@ -743,7 +743,7 @@ function CoverageStatistics(files) {
             _incrementExpressionCounters(statistics.expressionCounters,
                                          offsetLine,
                                          function(line) {
-                                             Warning("executed " +
+                                             warning("executed " +
                                                      frame.script.url +
                                                      ":" +
                                                      offsetLine +


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