Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions quickjs-libc.c
Original file line number Diff line number Diff line change
Expand Up @@ -4586,6 +4586,7 @@ void js_std_eval_binary(JSContext *ctx, const uint8_t *buf, size_t buf_len,
if (js_module_set_import_meta(ctx, obj, false, false) < 0)
goto exception;
}
JS_FreeValue(ctx, obj);
} else {
if (JS_VALUE_GET_TAG(obj) == JS_TAG_MODULE) {
if (JS_ResolveModule(ctx, obj) < 0) {
Expand Down
4 changes: 3 additions & 1 deletion quickjs.c
Original file line number Diff line number Diff line change
Expand Up @@ -39934,8 +39934,10 @@ static JSValue js_array_every(JSContext *ctx, JSValueConst this_val,
goto exception;
args[0] = ret;
res = JS_Invoke(ctx, arr, JS_ATOM_set, 1, args);
if (check_exception_free(ctx, res))
if (check_exception_free(ctx, res)) {
JS_FreeValue(ctx, arr);
goto exception;
}
JS_FreeValue(ctx, ret);
ret = arr;
}
Expand Down
Loading