Skip to main content

prop_name_from_ident

Function prop_name_from_ident 

Source
pub fn prop_name_from_ident(ident: Ident) -> PropName
Expand description

Creates a PropName for a shorthand property, handling the special case of __proto__. When the property name is __proto__, it must be converted to a computed property to preserve JavaScript semantics.