Use &Val for submov key

This commit is contained in:
Andrew Morris
2023-06-20 14:26:36 +10:00
parent 0bafbc74e4
commit 7e16156933
15 changed files with 18 additions and 18 deletions

View File

@@ -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())
}