Add `__iter` to destructed metatable (luau)

This commit is contained in:
Alex Orlenko 2022-07-22 23:06:11 +01:00
parent 4a25eab257
commit 95adf8df8e
No known key found for this signature in database
GPG Key ID: 4C150C250863B96D
1 changed files with 2 additions and 0 deletions

View File

@ -942,6 +942,8 @@ pub unsafe fn init_error_registry(state: *mut ffi::lua_State) -> Result<()> {
"__pairs",
#[cfg(any(feature = "lua53", feature = "lua52", feature = "luajit52"))]
"__ipairs",
#[cfg(feature = "luau")]
"__iter",
#[cfg(feature = "lua54")]
"__close",
] {