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 map and set

+11 -1
+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.0.7.32') 77 + version_conf.set('ANT_VERSION', '0.0.7.33') 78 78 version_conf.set('ANT_GIT_HASH', git_hash) 79 79 version_conf.set('ANT_BUILD_DATE', build_date) 80 80
+10
src/ant.c
··· 10000 10000 static jsval_t builtin_Map(struct js *js, jsval_t *args, int nargs) { 10001 10001 jsval_t map_obj = mkobj(js, 0); 10002 10002 10003 + jsval_t map_proto = get_ctor_proto(js, "Map", 3); 10004 + if (vtype(map_proto) == T_OBJ) { 10005 + set_proto(js, map_obj, map_proto); 10006 + } 10007 + 10003 10008 map_entry_t **map_head = (map_entry_t **)ANT_GC_MALLOC(sizeof(map_entry_t *)); 10004 10009 if (!map_head) return js_mkerr(js, "out of memory"); 10005 10010 *map_head = NULL; ··· 10013 10018 10014 10019 static jsval_t builtin_Set(struct js *js, jsval_t *args, int nargs) { 10015 10020 jsval_t set_obj = mkobj(js, 0); 10021 + 10022 + jsval_t set_proto_val = get_ctor_proto(js, "Set", 3); 10023 + if (vtype(set_proto_val) == T_OBJ) { 10024 + set_proto(js, set_obj, set_proto_val); 10025 + } 10016 10026 10017 10027 set_entry_t **set_head = (set_entry_t **)ANT_GC_MALLOC(sizeof(set_entry_t *)); 10018 10028 if (!set_head) return js_mkerr(js, "out of memory");