Skip to content

Commit 2728751

Browse files
committed
Fix implicit enum conversion
Ref: #131
1 parent 8f2993b commit 2728751

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

quickjs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26363,7 +26363,7 @@ static int add_import(JSParseState *s, JSModuleDef *m,
2636326363
is_local = (import_name == JS_ATOM__star_);
2636426364
var_idx = add_closure_var(ctx, s->cur_func, is_local, FALSE,
2636526365
m->import_entries_count,
26366-
local_name, TRUE, TRUE, FALSE);
26366+
local_name, TRUE, TRUE, JS_VAR_NORMAL);
2636726367
if (var_idx < 0)
2636826368
return -1;
2636926369
if (js_resize_array(ctx, (void **)&m->import_entries,
@@ -30162,7 +30162,7 @@ static int add_module_variables(JSContext *ctx, JSFunctionDef *fd)
3016230162
for(i = 0; i < fd->global_var_count; i++) {
3016330163
hf = &fd->global_vars[i];
3016430164
if (add_closure_var(ctx, fd, TRUE, FALSE, i, hf->var_name, hf->is_const,
30165-
hf->is_lexical, FALSE) < 0)
30165+
hf->is_lexical, JS_VAR_NORMAL) < 0)
3016630166
return -1;
3016730167
}
3016830168

0 commit comments

Comments
 (0)