mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
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.
6 lines
89 B
JavaScript
6 lines
89 B
JavaScript
function f(t, e) {
|
|
let { patchFlag: a } = t;
|
|
a |= 16 & e.patchFlag;
|
|
}
|
|
f({}, {});
|