int64_t size;
int ok;
- has = JS_UNDEFINED;
iter = JS_UNDEFINED;
- keys = JS_UNDEFINED;
next = JS_UNDEFINED;
rval = JS_EXCEPTION;
s = JS_GetOpaque2(ctx, this_val, JS_CLASS_SET);
if (!s)
- goto exception;
+ return JS_EXCEPTION;
if (get_set_record(ctx, argv[0], &size, &has, &keys) < 0)
goto exception;
if (s->record_count <= size) {
int64_t size;
int done, ok;
- has = JS_UNDEFINED;
iter = JS_UNDEFINED;
- keys = JS_UNDEFINED;
next = JS_UNDEFINED;
rval = JS_EXCEPTION;
s = JS_GetOpaque2(ctx, this_val, JS_CLASS_SET);
if (!s)
- goto exception;
+ return JS_EXCEPTION;
if (get_set_record(ctx, argv[0], &size, &has, &keys) < 0)
goto exception;
found = FALSE;
JSMapState *s;
int64_t size;
- has = JS_UNDEFINED;
iter = JS_UNDEFINED;
- keys = JS_UNDEFINED;
next = JS_UNDEFINED;
rval = JS_EXCEPTION;
s = JS_GetOpaque2(ctx, this_val, JS_CLASS_SET);
if (!s)
- goto exception;
+ return JS_EXCEPTION;
if (get_set_record(ctx, argv[0], &size, &has, &keys) < 0)
goto exception;
found = FALSE;
int64_t size;
int done, ok;
- has = JS_UNDEFINED;
iter = JS_UNDEFINED;
- keys = JS_UNDEFINED;
next = JS_UNDEFINED;
newset = JS_UNDEFINED;
s = JS_GetOpaque2(ctx, this_val, JS_CLASS_SET);
if (!s)
- goto exception;
+ return JS_EXCEPTION;
if (get_set_record(ctx, argv[0], &size, &has, &keys) < 0)
goto exception;
if (s->record_count > size) {
int done;
int ok;
- has = JS_UNDEFINED;
iter = JS_UNDEFINED;
- keys = JS_UNDEFINED;
next = JS_UNDEFINED;
newset = JS_UNDEFINED;
s = JS_GetOpaque2(ctx, this_val, JS_CLASS_SET);
if (!s)
- goto exception;
+ return JS_EXCEPTION;
if (get_set_record(ctx, argv[0], &size, &has, &keys) < 0)
goto exception;
JS_FreeValue(ctx, has);
next = JS_UNDEFINED;
+ newset = JS_UNDEFINED;
iter = JS_Call(ctx, keys, argv[0], 0, NULL);
if (JS_IsException(iter))
goto exception;
JS_FreeValue(ctx, has);
next = JS_UNDEFINED;
+ newset = JS_UNDEFINED;
iter = JS_Call(ctx, keys, argv[0], 0, NULL);
if (JS_IsException(iter))
goto exception;