just make it a ref

This commit is contained in:
Toshit Chawda 2024-10-12 19:59:21 -07:00
parent f8d33a207e
commit 593e06383e
No known key found for this signature in database
GPG key ID: 91480ED99E2B3D9D

View file

@ -419,7 +419,7 @@ fn expression_span(e: &Expression) -> Span {
} }
// js MUST not be able to get a reference to any of these because sbx // js MUST not be able to get a reference to any of these because sbx
const UNSAFE_GLOBALS: [&str; 9] = [ const UNSAFE_GLOBALS: &[&str] = &[
"window", "window",
"self", "self",
"globalThis", "globalThis",