pub fn validate_class_name(name: &str) -> Result<(), String>Expand description
Validate that a class name is a legal SpiderMonkey class identifier.
SM class names must be non-empty, start with an ASCII letter or underscore,
and contain only ASCII alphanumerics or underscores. This is used by
generate_bindings to reject malformed names early (before emitting
invalid Rust identifiers such as <Class>_constructor).
@trace REQ-ENG-002 [entity:CodegenBackend]