Blocks containing non-local using declarations need a lexical environment, just like let/const declarations. Add the missing UsingDeclaration case to match C++ behavior.
1 line
72 B
JavaScript
1 line
72 B
JavaScript
try { (function() { { using x = {}; (() => x)(); } })(); } catch (e) {}
|