Skip to main content

validate_member_name

Function validate_member_name 

Source
pub fn validate_member_name(name: &str) -> Result<(), String>
Expand description

Validate a single property (member) name. Allows string-shaped names (including dotted or hyphenated keys the host surface may expose) but rejects empty names — empty member names produce invalid JSPropertySpec entries that crash JS_InitClass at runtime.

@trace REQ-ENG-002 [entity:CodegenBackend]