mirror of
https://github.com/luau-lang/luau.git
synced 2025-08-26 11:27:08 +01:00
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. |
||
---|---|---|
.. | ||
include/Luau | ||
src |