()
| 26 | // Add an item to an object that is already wrapped, and ensure that its |
| 27 | // finalizer as well as the wrap finalizer gets called. |
| 28 | async function testFinalizeAndWrap() { |
| 29 | assert.strictEqual(test_general.derefItemWasCalled(), false); |
| 30 | let finalizeAndWrap = {}; |
| 31 | test_general.wrap(finalizeAndWrap); |
| 32 | test_general.addFinalizerOnly(finalizeAndWrap, common.mustCall()); |
| 33 | finalizeAndWrap = null; |
| 34 | await gcUntil('test finalize and wrap', |
| 35 | () => test_general.derefItemWasCalled()); |
| 36 | } |
| 37 | testFinalizeAndWrap(); |
no test coverage detected
searching dependent graphs…