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

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",
] {