(n)
| 14 | const files = []; |
| 15 | |
| 16 | const alloc = (n) => { |
| 17 | if (n === null || n === undefined) return HANDLE_NONE; |
| 18 | nodes.push(n); |
| 19 | const h = nodes.length - 1; |
| 20 | let set = handleByEl.get(n); |
| 21 | if (!set) { set = new Set(); handleByEl.set(n, set); } |
| 22 | set.add(h); |
| 23 | return h; |
| 24 | }; |
| 25 | |
| 26 | const node = (h) => { |
| 27 | if (h < 0 || h >= nodes.length || nodes[h] === null) { |