pub fn validate_global_name(name: &str) -> Result<()>
Validate global name follows JavaScript identifier rules.