[gjs/mozjs91: 54/64] JS::PrintError no longer takes a JSContext
- From: Evan Welsh <ewlsh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/mozjs91: 54/64] JS::PrintError no longer takes a JSContext
- Date: Sun, 11 Jul 2021 04:13:19 +0000 (UTC)
commit de768e41fe0ac66abffb488ce4b588a40c32d7c1
Author: Evan Welsh <contact evanwelsh com>
Date: Sat Jul 10 20:31:32 2021 -0700
JS::PrintError no longer takes a JSContext
modules/console.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/modules/console.cpp b/modules/console.cpp
index 2ef511aa..d496ea94 100644
--- a/modules/console.cpp
+++ b/modules/console.cpp
@@ -48,7 +48,7 @@ union Utf8Unit;
}
static void gjs_console_warning_reporter(JSContext* cx, JSErrorReport* report) {
- JS::PrintError(cx, stderr, report, /* reportWarnings = */ true);
+ 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]