mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
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.
6 lines
71 B
JavaScript
6 lines
71 B
JavaScript
function f() {
|
|
const x = 1;
|
|
x = 2;
|
|
}
|
|
try { f(); } catch (e) {}
|