mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-04-18 03:00:27 -04:00
Fix to_string -> val_to_string
This commit is contained in:
@@ -294,7 +294,7 @@ pub fn op_submov(target: &mut Val, subscript: Val, value: Val) {
|
||||
Rc::make_mut(array_data)[subscript_index] = value;
|
||||
},
|
||||
Val::Object(object_data) => {
|
||||
Rc::make_mut(object_data).insert(subscript.to_string(), value);
|
||||
Rc::make_mut(object_data).insert(subscript.val_to_string(), value);
|
||||
},
|
||||
Val::Function(_) => std::panic!("Not implemented: function subscript assignment"),
|
||||
Val::Custom(custom_data) => {
|
||||
|
||||
Reference in New Issue
Block a user