docs(ecmascript): correct docs for GlobalContext::is_global_reference (#13022)

This commit is contained in:
overlookmotel authored and GitHub committed 2025-08-12 22:10:25 +08:00
1 parent 4ce252ca36
commit 9c05e2ffcd
1 file changed
-4
@@ -5,10 +5,6 @@ use crate::constant_evaluation::ConstantValue;
pub trait GlobalContext<'a>: Sized {
/// Whether the reference is a global reference.
///
/// - None means it is unknown.
/// - Some(true) means it is a global reference.
/// - Some(false) means it is not a global reference.
fn is_global_reference(&self, reference: &IdentifierReference<'a>) -> bool;
fn is_global_expr(&self, name: &str, expr: &Expression<'a>) -> bool {