mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-04-18 03:00:27 -04:00
Use &Val for submov key
This commit is contained in:
@@ -150,7 +150,7 @@ impl ValTrait for ArrayPrototype {
|
||||
}))
|
||||
}
|
||||
|
||||
fn submov(&mut self, _key: Val, _value: Val) -> Result<(), Val> {
|
||||
fn submov(&mut self, _key: &Val, _value: Val) -> Result<(), Val> {
|
||||
Err("Cannot assign to subscript of Array.prototype".to_type_error())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user