Files
sausage/userland/qjs/source/tests/bug1564.js
T
surma d44f1d9677 Build separate native and WASI pipelines with shared multicall names
Checkpoint before integration and package validation.

Assisted-by: SurmAgent:unknown [read] [edit] [bash]
2026-11-12 09:36:27 +00:00

6 lines
232 B
JavaScript

const s = new DisposableStack();
s.adopt({}, () => { gc(); }); // disposed last (i=0); its disposer runs the GC
s.use({ [Symbol.dispose]() {} }); // disposed first (i=1); freed before the adopt disposer runs
s.dispose();