You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(regression) Fix lua_requireinternal to use variable number of stack args (luau-lang#1804)
Since 0.672 the `lua_proxyrequire` function is broken and attempt to use
it fails with the error message `module must return a single value`.
This function takes two stack arguments (`lua_require` takes one), but
`lua_requireinternal` expects only one extra argument and pushes another
one (`cacheKey`).
As a result, the continuation function `lua_requirecont` (that has
hardcoded number of stack args = 2) thinks that module returned more
than one result and throw an exception.
The fix instead of hardcoding number of arguments in the continuation
function, pass this number in a first stack argument.
This will allow both `lua_require` and `lua_proxyrequire` work at the
same time.
0 commit comments