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.

fix assignment operations in `do_op` function

+4 -7
+1 -1
meson.build
··· 79 79 build_date = run_command('date', '+%Y-%m-%d', check: true).stdout().strip() 80 80 81 81 version_conf = configuration_data() 82 - version_conf.set('ANT_VERSION', '0.2.2.22') 82 + version_conf.set('ANT_VERSION', '0.2.2.23') 83 83 version_conf.set('ANT_GIT_HASH', git_hash) 84 84 version_conf.set('ANT_BUILD_DATE', build_date) 85 85
+3 -6
src/ant.c
··· 4895 4895 if (own_off != 0) return mkval(T_PROP, own_off); 4896 4896 } 4897 4897 4898 - jsoff_t proto_off = lkp_proto(js, l, ptr, plen); 4899 - if (proto_off != 0) { 4900 - return resolveprop(js, mkval(T_PROP, proto_off)); 4901 - } 4902 - 4903 4898 jsval_t key = js_mkstr(js, ptr, plen); 4904 4899 return mkpropref((jsoff_t)vdata(l), (jsoff_t)vdata(key)); 4905 4900 } ··· 6052 6047 6053 6048 static jsval_t do_op(struct js *js, uint8_t op, jsval_t lhs, jsval_t rhs) { 6054 6049 if (js->flags & F_NOEXEC) return 0; 6055 - jsval_t l = resolveprop(js, lhs), r = resolveprop(js, rhs); 6050 + 6051 + jsval_t l = is_assign(op) ? lhs : resolveprop(js, lhs); 6052 + jsval_t r = resolveprop(js, rhs); 6056 6053 setlwm(js); 6057 6054 6058 6055 if (is_err(l)) return l;