semantics: scopes for with
statements are not created (Object Environment Record)
#8365
Labels
C-bug
Category - Bug
Currently semantic does not track scopes of
with
statements.is_global_reference
may returntrue
even if that reference refers to a property of an object passed to awith
statement.oxc/crates/oxc_semantic/src/symbol.rs
Lines 342 to 346 in e4d66e4
This leads to minification errors for codes like:
playground
This minification error may be fine as the minifier does not support
with
statements (for now?). But in this case, I think a warning should be output if the minifier found awith
statement.oxc/tasks/coverage/src/tools/minifier.rs
Line 44 in e4d66e4
The text was updated successfully, but these errors were encountered: