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 export defined as an accessor in commonjs

+5 -1
+5 -1
src/esm/commonjs.c
··· 86 86 if (key_len == 7 && memcmp(key, "default", 7) == 0) continue; 87 87 88 88 ant_value_t value = js_mkundef(); 89 - if (!js_try_get_own_data_prop(js, exports_val, key, key_len, &value)) continue; 89 + if (!js_try_get_own_data_prop(js, exports_val, key, key_len, &value)) { 90 + value = js_get(js, exports_val, key); 91 + if (is_err(value)) { js_prop_iter_end(&iter); return value; } 92 + if (vtype(value) == T_UNDEF) continue; 93 + } 90 94 91 95 ant_value_t res = setprop_cstr(js, ns, key, key_len, value); 92 96 if (is_err(res)) { js_prop_iter_end(&iter); return res; }