[gjs/mozjs78: 28/38] jsapi-util: Remove js::Jsvalify.
- From: Philip Chimento <pchimento src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gjs/mozjs78: 28/38] jsapi-util: Remove js::Jsvalify.
 
- Date: Tue, 11 Aug 2020 19:54:34 +0000 (UTC)
 
commit 3f808c72aede9826d0fc664c48351776b55d90b1
Author: Evan Welsh <noreply evanwelsh com>
Date:   Sat Jul 4 22:28:36 2020 -0500
    jsapi-util: Remove js::Jsvalify.
    
    There is no longer any distinction between JSClass and js::Class. The
    latter has been removed.
    
    See: GNOME/gjs#329
 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 1c8a499b..20634738 100644
--- a/gjs/jsapi-util.cpp
+++ b/gjs/jsapi-util.cpp
@@ -403,12 +403,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]