fix: no static-state-reference warning in legacy mode (#10865)

Doesn't make any sense there
pull/10870/head
Simon H 9 months ago committed by GitHub
parent c87c2f452e
commit f6eca83b7c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1072,6 +1072,7 @@ const common_visitors = {
}
if (
context.state.analysis.runes &&
node !== binding.node &&
// If we have $state that can be proxied or frozen and isn't re-assigned, then that means
// it's likely not using a primitive value and thus this warning isn't that helpful.

Loading…
Cancel
Save