Skip to content

Commit

Permalink
Add WeakRef as a safe global reference
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeapage authored Dec 29, 2023
1 parent 4229e7b commit eac3dd7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/swc_ecma_usage_analyzer/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ pub fn is_global_var_with_pure_property_access(s: &str) -> bool {
| "NaN"
| "Symbol"
| "Promise"
| "WeakRef"
)
}

Expand Down

0 comments on commit eac3dd7

Please sign in to comment.