[gjs/mozjs91: 11/25] Remove JSContext parameter from JS::PrintError
- From: Philip Chimento <pchimento src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gjs/mozjs91: 11/25] Remove JSContext parameter from JS::PrintError
 
- Date: Sun, 16 Jan 2022 00:34:42 +0000 (UTC)
 
commit 5037716b3bd470b6cb09985f33d5b4851871eb66
Author: Evan Welsh <contact evanwelsh com>
Date:   Sat Jul 10 20:31:32 2021 -0700
    Remove JSContext parameter from JS::PrintError
 modules/console.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/modules/console.cpp b/modules/console.cpp
index 393aed59..e54554b6 100644
--- a/modules/console.cpp
+++ b/modules/console.cpp
@@ -47,8 +47,8 @@ namespace mozilla {
 union Utf8Unit;
 }
 
-static void gjs_console_warning_reporter(JSContext* cx, JSErrorReport* report) {
-    JS::PrintError(cx, stderr, report, /* reportWarnings = */ true);
+static void gjs_console_warning_reporter(JSContext*, JSErrorReport* report) {
+    JS::PrintError(stderr, report, /* reportWarnings = */ true);
 }
 
 /* Based on js::shell::AutoReportException from SpiderMonkey. */
@@ -75,7 +75,7 @@ public:
 
         g_assert(!report.report()->isWarning());
 
-        JS::PrintError(m_cx, stderr, report, /* reportWarnings = */ false);
+        JS::PrintError(stderr, report, /* reportWarnings = */ false);
 
         if (exnStack.stack()) {
             GjsAutoChar stack_str =
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]