Skip to content

Commit

Permalink
Add __iter to destructed metatable (luau)
Browse files Browse the repository at this point in the history
  • Loading branch information
khvzak committed Jul 24, 2022
1 parent 4a25eab commit 95adf8d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
] {
Expand Down

0 comments on commit 95adf8d

Please sign in to comment.