You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently semantic does not track the existence of direct eval. is_global_reference may return true even if that reference refers to a variable declared by direct eval (the declaration is only leaked outside in non-strict mode).
All logic related to eval has not been implemented yet. We need to either implement them or warn about it. Note: esbuild bails minification and mangling for all parent scopes containing eval.
Currently semantic does not track the existence of direct eval.
is_global_reference
may return true even if that reference refers to a variable declared by direct eval (the declaration is only leaked outside in non-strict mode).oxc/crates/oxc_semantic/src/symbol.rs
Lines 342 to 346 in e4d66e4
This leads to minification errors for codes like:
playground
I'd say just never use direct eval 😅 But leaving a note for reference. (This is not something I met with real world code)
The text was updated successfully, but these errors were encountered: