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.

use goto for cleanup

+13 -11
+1 -1
meson.build
··· 74 74 build_date = run_command('date', '+%Y-%m-%d', check: true).stdout().strip() 75 75 76 76 version_conf = configuration_data() 77 - version_conf.set('ANT_VERSION', '0.1.0.6') 77 + version_conf.set('ANT_VERSION', '0.1.0.7') 78 78 version_conf.set('ANT_GIT_HASH', git_hash) 79 79 version_conf.set('ANT_BUILD_DATE', build_date) 80 80
+12 -10
src/ant.c
··· 1139 1139 char desc_key[128]; 1140 1140 snprintf(desc_key, sizeof(desc_key), "__desc_%.*s", (int)klen, key); 1141 1141 jsoff_t desc_off = lkp(js, obj, desc_key, strlen(desc_key)); 1142 - if (desc_off != 0) { 1143 - jsval_t desc_obj = resolveprop(js, mkval(T_PROP, desc_off)); 1144 - if (vtype(desc_obj) == T_OBJ) { 1145 - jsoff_t enumerable_off = lkp(js, desc_obj, "enumerable", 10); 1146 - if (enumerable_off != 0) { 1147 - jsval_t enumerable_val = resolveprop(js, mkval(T_PROP, enumerable_off)); 1148 - if (!js_truthy(js, enumerable_val)) should_hide = true; 1149 - } 1150 - } 1151 - } 1142 + if (desc_off == 0) goto check_done; 1143 + 1144 + jsval_t desc_obj = resolveprop(js, mkval(T_PROP, desc_off)); 1145 + if (vtype(desc_obj) != T_OBJ) goto check_done; 1146 + 1147 + jsoff_t enumerable_off = lkp(js, desc_obj, "enumerable", 10); 1148 + if (enumerable_off == 0) goto check_done; 1149 + 1150 + jsval_t enumerable_val = resolveprop(js, mkval(T_PROP, enumerable_off)); 1151 + if (!js_truthy(js, enumerable_val)) should_hide = true; 1152 + 1153 + check_done:; 1152 1154 } 1153 1155 1154 1156 if (!should_hide) {