From 95adf8df8e70b4751747f9f9d31578307abd7d61 Mon Sep 17 00:00:00 2001 From: Alex Orlenko Date: Fri, 22 Jul 2022 23:06:11 +0100 Subject: [PATCH] Add `__iter` to destructed metatable (luau) --- src/util.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/util.rs b/src/util.rs index 66b26e7..888f57c 100644 --- a/src/util.rs +++ b/src/util.rs @@ -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", ] {