This commit is contained in:
Andrew Morris
2022-05-22 12:34:12 +10:00
parent 2cc7ea317d
commit 921f13452a

View File

@@ -691,12 +691,7 @@ static TO_LOCALE_STRING: NativeFunction = NativeFunction {
static TO_STRING: NativeFunction = NativeFunction {
fn_: |this: &mut Val, _params: Vec<Val>| -> Val {
match this {
Val::Array(_array_data) => {
std::panic!("Not implemented: TO_STRING");
},
_ => std::panic!("Not implemented: exceptions/array indirection"),
};
return Val::String(Rc::new(this.val_to_string()));
}
};