Skip to content

Commit

Permalink
Fix implicit enum conversion
Browse files Browse the repository at this point in the history
Ref: #131
  • Loading branch information
saghul committed Nov 24, 2023
1 parent 8f2993b commit 7542b81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quickjs.c
Original file line number Diff line number Diff line change
Expand Up @@ -26363,7 +26363,7 @@ static int add_import(JSParseState *s, JSModuleDef *m,
is_local = (import_name == JS_ATOM__star_);
var_idx = add_closure_var(ctx, s->cur_func, is_local, FALSE,
m->import_entries_count,
local_name, TRUE, TRUE, FALSE);
local_name, TRUE, TRUE, JS_VAR_NORMAL);
if (var_idx < 0)
return -1;
if (js_resize_array(ctx, (void **)&m->import_entries,
Expand Down Expand Up @@ -30162,7 +30162,7 @@ static int add_module_variables(JSContext *ctx, JSFunctionDef *fd)
for(i = 0; i < fd->global_var_count; i++) {
hf = &fd->global_vars[i];
if (add_closure_var(ctx, fd, TRUE, FALSE, i, hf->var_name, hf->is_const,
hf->is_lexical, FALSE) < 0)
hf->is_lexical, JS_VAR_NORMAL) < 0)
return -1;
}

Expand Down

0 comments on commit 7542b81

Please sign in to comment.