Skip to content

Commit 95adf8d

Browse files
committed
Add __iter to destructed metatable (luau)
1 parent 4a25eab commit 95adf8d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/util.rs

+2
Original file line numberDiff line numberDiff line change
@@ -942,6 +942,8 @@ pub unsafe fn init_error_registry(state: *mut ffi::lua_State) -> Result<()> {
942942
"__pairs",
943943
#[cfg(any(feature = "lua53", feature = "lua52", feature = "luajit52"))]
944944
"__ipairs",
945+
#[cfg(feature = "luau")]
946+
"__iter",
945947
#[cfg(feature = "lua54")]
946948
"__close",
947949
] {

0 commit comments

Comments
 (0)