[gjs: 6/14] js: Remove JSProto_StopIteration
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 6/14] js: Remove JSProto_StopIteration
- Date: Sun, 29 Jul 2018 16:54:47 +0000 (UTC)
commit 18a0e99179c97aa0fee1eedf9dbc1220d4a0d655
Author: Philip Chimento <philip chimento gmail com>
Date: Sun Dec 10 00:58:11 2017 -0800
js: Remove JSProto_StopIteration
This kind of exception doesn't exist any more.
See: #161
gi/gerror.cpp | 2 --
gjs/jsapi-util-error.cpp | 8 ++++----
2 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/gi/gerror.cpp b/gi/gerror.cpp
index 3724d3aa..639d3472 100644
--- a/gi/gerror.cpp
+++ b/gi/gerror.cpp
@@ -423,8 +423,6 @@ proto_key_from_error_enum(int val)
return JSProto_RangeError;
case GJS_JS_ERROR_REFERENCE_ERROR:
return JSProto_ReferenceError;
- case GJS_JS_ERROR_STOP_ITERATION:
- return JSProto_StopIteration;
case GJS_JS_ERROR_SYNTAX_ERROR:
return JSProto_SyntaxError;
case GJS_JS_ERROR_TYPE_ERROR:
diff --git a/gjs/jsapi-util-error.cpp b/gjs/jsapi-util-error.cpp
index f4f67145..f8f8088a 100644
--- a/gjs/jsapi-util-error.cpp
+++ b/gjs/jsapi-util-error.cpp
@@ -156,10 +156,10 @@ gjs_throw_custom(JSContext *cx,
{
va_list args;
g_return_if_fail(kind == JSProto_Error || kind == JSProto_InternalError ||
- kind == JSProto_EvalError || kind == JSProto_RangeError ||
- kind == JSProto_ReferenceError || kind == JSProto_SyntaxError ||
- kind == JSProto_TypeError || kind == JSProto_URIError ||
- kind == JSProto_StopIteration);
+ kind == JSProto_EvalError || kind == JSProto_RangeError ||
+ kind == JSProto_ReferenceError ||
+ kind == JSProto_SyntaxError || kind == JSProto_TypeError ||
+ kind == JSProto_URIError);
va_start(args, format);
gjs_throw_valist(cx, kind, error_name, format, args);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]