Debian Codegraph @

js/src/jit-test/tests/explicit-resource-management/bug1934425.js

raw
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();