[gjs] jsapi-util-error: Fix gjs_throw_custom
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] jsapi-util-error: Fix gjs_throw_custom
- Date: Sun, 1 Jan 2017 02:07:17 +0000 (UTC)
commit aed3d424d023715ac37733b32ba177369fd0236c
Author: Philip Chimento <philip chimento gmail com>
Date: Fri Dec 30 21:58:27 2016 -0700
jsapi-util-error: Fix gjs_throw_custom
A few stragglers from the signature change of gjs_throw_custom().
https://bugzilla.gnome.org/show_bug.cgi?id=730101
gi/function.cpp | 2 +-
gi/object.cpp | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gi/function.cpp b/gi/function.cpp
index 082e825..70ae3df 100644
--- a/gi/function.cpp
+++ b/gi/function.cpp
@@ -650,7 +650,7 @@ gjs_fill_method_instance(JSContext *context,
if (transfer == GI_TRANSFER_EVERYTHING)
gjs_fundamental_ref (context, out_arg->v_pointer);
} else {
- gjs_throw_custom(context, "TypeError",
+ gjs_throw_custom(context, "TypeError", NULL,
"%s.%s is not an object instance neither a fundamental instance of a supported
type",
g_base_info_get_namespace(container),
g_base_info_get_name(container));
diff --git a/gi/object.cpp b/gi/object.cpp
index 2b9cde6..c16ff31 100644
--- a/gi/object.cpp
+++ b/gi/object.cpp
@@ -2272,13 +2272,13 @@ gjs_typecheck_object(JSContext *context,
if (!result && throw_error) {
if (priv->info) {
- gjs_throw_custom(context, "TypeError",
+ gjs_throw_custom(context, "TypeError", NULL,
"Object is of type %s.%s - cannot convert to %s",
g_base_info_get_namespace((GIBaseInfo*) priv->info),
g_base_info_get_name((GIBaseInfo*) priv->info),
g_type_name(expected_type));
} else {
- gjs_throw_custom(context, "TypeError",
+ gjs_throw_custom(context, "TypeError", NULL,
"Object is of type %s - cannot convert to %s",
g_type_name(priv->gtype),
g_type_name(expected_type));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]