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.

regex comma parsing

+13 -2
+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.17') 78 + version_conf.set('ANT_VERSION', '0.1.3.18') 79 79 version_conf.set('ANT_GIT_HASH', git_hash) 80 80 version_conf.set('ANT_BUILD_DATE', build_date) 81 81
+12 -1
src/ant.c
··· 8326 8326 return js_assignment(js); 8327 8327 } 8328 8328 8329 + static jsval_t js_expr_comma(struct js *js) { 8330 + jsval_t res = js_assignment(js); 8331 + if (is_err(res)) return res; 8332 + while (next(js) == TOK_COMMA) { 8333 + js->consumed = 1; 8334 + res = js_assignment(js); 8335 + if (is_err(res)) return res; 8336 + } 8337 + return res; 8338 + } 8339 + 8329 8340 static jsval_t js_eval_slice(struct js *js, jsoff_t off, jsoff_t len) { 8330 8341 js_parse_state_t saved; 8331 8342 JS_SAVE_STATE(js, saved); ··· 9645 9656 9646 9657 uint8_t nxt = next(js); 9647 9658 if (nxt != TOK_SEMICOLON && nxt != TOK_RBRACE && nxt != TOK_EOF && !js->had_newline) { 9648 - res = resolveprop(js, js_expr(js)); 9659 + res = resolveprop(js, js_expr_comma(js)); 9649 9660 } 9650 9661 9651 9662 if (exe && !in_func) return js_mkundef();