Skip to main content

to_string_value

Function to_string_value 

Source
pub fn to_string_value(v: &Value) -> Result<Value, String>
Expand description

ToString(v) with ToPrimitive method dispatch: an object with a user toString (or valueOf) on its prototype chain has it invoked; everything else uses the raw str_of. Returns a heap string value.