[gjs/mozjs78: 17/21] Remove error report flags usage. - Removed from upstream.



commit 08c4dd747165c1531b8b16236dc2329e3d72df52
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]