MIRROR: javascript for ๐Ÿœ's, a tiny runtime with big ambitions
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

lexical bindings for subdir import metadata

+6 -6
+6 -6
src/silver/compiler.c
··· 4253 4253 } 4254 4254 4255 4255 bool repl_top = is_repl_top_level(&comp); 4256 + if (mode == SV_COMPILE_MODULE && comp.enclosing && !comp.enclosing->enclosing) { 4257 + int import_local = add_local(&comp, "import", 6, true, comp.scope_depth); 4258 + emit_op(&comp, OP_SPECIAL_OBJ); 4259 + emit(&comp, 3); 4260 + emit_put_local(&comp, import_local); 4261 + } 4256 4262 if (!has_non_simple_params && node->body) { 4257 4263 if (node->body->type == N_BLOCK) { 4258 4264 if (!repl_top) { ··· 4406 4412 } 4407 4413 4408 4414 free(param_bind_locals); 4409 - if (mode == SV_COMPILE_MODULE && comp.enclosing && !comp.enclosing->enclosing) { 4410 - int import_local = add_local(&comp, "import", 6, true, comp.scope_depth); 4411 - emit_op(&comp, OP_SPECIAL_OBJ); 4412 - emit(&comp, 3); 4413 - emit_put_local(&comp, import_local); 4414 - } 4415 4415 4416 4416 if (node->body) { 4417 4417 if (node->body->type == N_BLOCK) {