Files
ladybird/Tests/LibJS/Bytecode/input/using-declaration-non-local-env.js
Andreas Kling fb61294df7 LibJS: Add UsingDeclaration to needs_block_declaration_instantiation
Blocks containing non-local using declarations need a lexical
environment, just like let/const declarations. Add the missing
UsingDeclaration case to match C++ behavior.
2026-03-04 12:17:59 +01:00

2 lines
72 B
JavaScript

try { (function() { { using x = {}; (() => x)(); } })(); } catch (e) {}