[gjs/mozjs78: 19/23] Remove error report flags usage. - Removed from upstream.
- From: Evan Welsh <ewlsh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/mozjs78: 19/23] Remove error report flags usage. - Removed from upstream.
- Date: Sun, 5 Jul 2020 03:41:05 +0000 (UTC)
commit 8a754128bfec240d8b0cb6dbb984e7c3968bd230
Author: Evan Welsh <noreply evanwelsh com>
Date: Sat Jul 4 22:27:34 2020 -0500
Remove error report flags usage.
- Removed from upstream.
gjs/jsapi-util-error.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/gjs/jsapi-util-error.cpp b/gjs/jsapi-util-error.cpp
index 0546ca66..ebc09cc5 100644
--- a/gjs/jsapi-util-error.cpp
+++ b/gjs/jsapi-util-error.cpp
@@ -237,7 +237,6 @@ void gjs_warning_reporter(JSContext*, JSErrorReport* report) {
g_assert(report);
if (gjs_environment_variable_is_set("GJS_ABORT_ON_OOM") &&
- report->flags == JSREPORT_ERROR &&
report->errorNumber == 137) {
/* 137, JSMSG_OUT_OF_MEMORY */
g_error("GJS ran out of memory at %s: %i.",
@@ -245,7 +244,7 @@ void gjs_warning_reporter(JSContext*, JSErrorReport* report) {
report->lineno);
}
- if ((report->flags & JSREPORT_WARNING) != 0) {
+ if (report->isWarning()) {
warning = "WARNING";
level = G_LOG_LEVEL_MESSAGE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]