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.

ASI fixes

+5 -5
+1 -1
meson.build
··· 75 75 build_date = run_command('date', '+%Y-%m-%d', check: true).stdout().strip() 76 76 77 77 version_conf = configuration_data() 78 - version_conf.set('ANT_VERSION', '0.1.3.20') 78 + version_conf.set('ANT_VERSION', '0.1.3.21') 79 79 version_conf.set('ANT_GIT_HASH', git_hash) 80 80 version_conf.set('ANT_BUILD_DATE', build_date) 81 81
+4 -4
src/ant.c
··· 4365 4365 return js_mkundef(); 4366 4366 } 4367 4367 if (vtype(obj) != T_OBJ && vtype(obj) != T_ARR) { 4368 - return js_mkerr(js, "cannot index non-object"); 4368 + return js_mkundef(); 4369 4369 } 4370 4370 if ((streq(keystr, keylen, "callee", 6) || streq(keystr, keylen, "caller", 6)) && 4371 4371 lkp(js, obj, "__strict_args__", 15) != 0) { ··· 7446 7446 jsval_t res = js_call_dot(js); 7447 7447 if (is_err(res)) return res; 7448 7448 next(js); 7449 - if (js->tok == TOK_POSTINC || js->tok == TOK_POSTDEC) { 7449 + if ((js->tok == TOK_POSTINC || js->tok == TOK_POSTDEC) && !js->had_newline) { 7450 7450 js->consumed = 1; 7451 7451 res = do_op(js, js->tok, res, 0); 7452 7452 } ··· 10504 10504 jsoff_t existing_off = lkp(js, var_scope, decoded_name, decoded_len); 10505 10505 if (existing_off > 0) { 10506 10506 jsval_t key_val = js_mkstr(js, decoded_name, decoded_len); 10507 - if (!is_err(v) && vtype(v) != T_UNDEF) { 10507 + if (!is_err(v)) { 10508 10508 setprop(js, var_scope, key_val, resolveprop(js, v)); 10509 10509 } 10510 10510 } else { ··· 10514 10514 } 10515 10515 10516 10516 uint8_t var_next = next(js); 10517 - if (var_next == TOK_SEMICOLON || var_next == TOK_EOF || var_next == TOK_RBRACE) break; 10517 + if (var_next == TOK_SEMICOLON || var_next == TOK_EOF || var_next == TOK_RBRACE || js->had_newline) break; 10518 10518 EXPECT(TOK_COMMA, ); 10519 10519 } 10520 10520 return js_mkundef();