[gjs/mozjs78: 40/50] Remove js::Jsvalify. - No longer needed and removed upstream.
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/mozjs78: 40/50] Remove js::Jsvalify. - No longer needed and removed upstream.
- Date: Tue, 4 Aug 2020 06:31:40 +0000 (UTC)
commit 2f35fbe2eb6dd5cd177feaa9c6eecc2f00fe3390
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 f11bbba7..6bb8f284 100644
--- a/gjs/jsapi-util.cpp
+++ b/gjs/jsapi-util.cpp
@@ -402,12 +402,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]