[gjs/mozjs78: 20/23] Remove js::Jsvalify. - No longer needed and removed upstream.



commit 6e8150eae6793a41fc2ee4475a52d6f9c294bbd0
Author: Evan Welsh <noreply evanwelsh com>
Date:   Sat Jul 4 22:28:36 2020 -0500

    Remove js::Jsvalify.
    - No longer needed and removed upstream.

 gjs/jsapi-util.cpp | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gjs/jsapi-util.cpp b/gjs/jsapi-util.cpp
index 26622a3b..98ec4aca 100644
--- a/gjs/jsapi-util.cpp
+++ b/gjs/jsapi-util.cpp
@@ -408,12 +408,11 @@ bool gjs_log_exception_full(JSContext* context, JS::HandleValue exc,
     bool is_syntax = false, is_internal = false;
     if (exc.isObject()) {
         exc_obj = &exc.toObject();
-        const JSClass* syntax_error =
-            js::Jsvalify(js::ProtoKeyToClass(JSProto_SyntaxError));
+        const JSClass* syntax_error = js::ProtoKeyToClass(JSProto_SyntaxError);
         is_syntax = JS_InstanceOf(context, exc_obj, syntax_error, nullptr);
 
         const JSClass* internal_error =
-            js::Jsvalify(js::ProtoKeyToClass(JSProto_InternalError));
+            js::ProtoKeyToClass(JSProto_InternalError);
         is_internal = JS_InstanceOf(context, exc_obj, internal_error, nullptr);
     }
 


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