Fix default_newindex to pass all needed arguments
The code for calling a Lua-set handler function was likely copied from
default_index and thus only passed the index. However, here the value is
also needed as an argument.
@@ -255,7 +255,7 @@ pub fn default_newindex<'lua>(_: &'lua Lua,
}
match class.get::<_, Function>("__newindex_miss_handler") {
Ok(function) => {
- return function.bind(obj_table)?.call(index)
+ return function.bind(obj_table)?.call((index, val))
},
Err(_) => {}
}
