File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
nova_vm/src/ecmascript/builtins/map Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,12 @@ use soavec_derive::SoAble;
2121
2222#[ derive( Debug , Default , SoAble ) ]
2323pub struct MapHeapData < ' a > {
24+ /// Low-level hash table pointing to keys-values indexes.
25+ pub ( crate ) map_data : RefCell < HashTable < u32 > > ,
2426 // TODO: Use a ParallelVec to remove one unnecessary allocation.
2527 // pub(crate) key_values: ParallelVec<Option<Value>, Option<Value>>
26- pub ( crate ) keys : Vec < Option < Value < ' a > > > ,
2728 pub ( crate ) values : Vec < Option < Value < ' a > > > ,
28- /// Low-level hash table pointing to keys-values indexes.
29- pub ( crate ) map_data : RefCell < HashTable < u32 > > ,
29+ pub ( crate ) keys : Vec < Option < Value < ' a > > > ,
3030 pub ( crate ) object_index : Option < OrdinaryObject < ' a > > ,
3131 /// Flag that lets the Map know if it needs to rehash its primitive keys.
3232 ///
You can’t perform that action at this time.
0 commit comments