File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed
nova_vm/src/ecmascript/builtins/weak_map Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -35,19 +35,6 @@ pub(crate) struct WeakMapData {
3535}
3636
3737impl WeakMapHeapData {
38- /// ### [24.2.1.5 WeakMapDataSize ( setData )](https://tc39.es/ecma262/#sec-setdatasize)
39- ///
40- /// The abstract operation MapDataSize takes argument setData (a List of either
41- /// ECMAScript language values or EMPTY) and returns a non-negative integer.
42- #[ inline( always) ]
43- pub fn size ( & self ) -> u32 {
44- // 1. Let count be 0.
45- // 2. For each element e of setData, do
46- // a. If e is not EMPTY, set count to count + 1.
47- // 3. Return count.
48- self . weak_map_data . weak_map_data . borrow ( ) . len ( ) as u32
49- }
50-
5138 pub fn keys ( & self ) -> & [ Option < Value > ] {
5239 & self . weak_map_data . keys
5340 }
You can’t perform that action at this time.
0 commit comments