Files
ladybird/Tests/LibJS/Bytecode/input/async-await-in-try-catch.js
Andreas Kling ffa380f15b Tests/LibJS: Add bytecode test for async await in try-catch with scope
Test that the await continuation's throw path properly unwinds the
lexical environment when inside a with statement within a try-catch.
2026-03-01 21:20:54 +01:00

10 lines
115 B
JavaScript

async function f(a) {
try {
with (a) {
await 1;
}
} catch (e) {
}
}
f({});