Files
ladybird/Tests/LibJS/Bytecode/input/destructuring-let-compound-assign.js
Andreas Kling aadfe0f02a Tests/LibJS: Add test for compound assignment after destructuring
This adds a test case for compound assignment to a variable that was
initialized via a let destructuring pattern. The Rust pipeline emits a
redundant ThrowIfTDZ after the compound assignment because the variable
is not tracked as initialized after destructuring.
2026-03-01 21:20:54 +01:00

6 lines
89 B
JavaScript

function f(t, e) {
let { patchFlag: a } = t;
a |= 16 & e.patchFlag;
}
f({}, {});