()
| 478 | } |
| 479 | |
| 480 | function commit() { |
| 481 | // TODO: Curried forEach |
| 482 | // We capture the real WeakSet.prototype.add above, in case someone |
| 483 | // changes it. The two-argument form of forEach passes the second |
| 484 | // argument as the 'this' binding, so we add to the correct set. |
| 485 | freezingSet.forEach(frozenSet.add, frozenSet); |
| 486 | } |
| 487 | |
| 488 | enqueue(node); |
| 489 | dequeue(); |
no test coverage detected