mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Merge branch 'master' into merge
This commit is contained in:
commit
7d27130b16
1 changed files with 2 additions and 1 deletions
|
@ -170,7 +170,8 @@ int lua_proxyrequire(lua_State* L)
|
||||||
int lua_require(lua_State* L)
|
int lua_require(lua_State* L)
|
||||||
{
|
{
|
||||||
lua_Debug ar;
|
lua_Debug ar;
|
||||||
lua_getinfo(L, 1, "s", &ar);
|
if (!lua_getinfo(L, 1, "s", &ar))
|
||||||
|
luaL_error(L, "require is not supported in this context");
|
||||||
return lua_requireinternal(L, ar.source);
|
return lua_requireinternal(L, ar.source);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue