Files
ladybird/Tests/LibJS/Bytecode/input/const-assignment-no-extra-tdz.js
Andreas Kling 722a897b28 LibJS: Remove redundant ThrowIfTDZ from Rust emit_set_variable
The caller is responsible for emitting ThrowIfTDZ before calling
emit_set_variable(), matching the C++ pipeline behavior. Remove the
redundant TDZ checks from both the const and non-const local paths.
2026-03-04 12:17:59 +01:00

6 lines
71 B
JavaScript

function f() {
const x = 1;
x = 2;
}
try { f(); } catch (e) {}