bug1934425.js (279B)
1 // |jit-test| skip-if: !getBuildConfiguration("explicit-resource-management"); --enable-explicit-resource-management 2 3 async function foo() { 4 let resources = [ 5 { [Symbol.asyncDispose]: () => 0}, 6 0 7 ]; 8 try { 9 for (await using d of resources); 10 } catch {} 11 } 12 foo();