[gjs] gi: Don't throw in JSResolveOp
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] gi: Don't throw in JSResolveOp
- Date: Mon, 16 May 2011 23:07:21 +0000 (UTC)
commit ae4d4bc659ad4fde3c2243309f814ea557be8853
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Fri May 6 23:44:34 2011 -0400
gi: Don't throw in JSResolveOp
Not only is it extremely inpolite, it broke things like "hasOwnProperty"
and the "in" operator that depended on the return value of it.
https://bugzilla.gnome.org/show_bug.cgi?id=649624
gi/ns.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/gi/ns.c b/gi/ns.c
index 58111cc..3769f0a 100644
--- a/gi/ns.c
+++ b/gi/ns.c
@@ -114,9 +114,6 @@ ns_new_resolve(JSContext *context,
goto out;
}
} else {
- gjs_throw(context,
- "No symbol '%s' in namespace '%s'",
- name, priv->namespace);
JS_EndRequest(context);
goto out;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]