Skip to content

Commit e609db7

Browse files
committed
Simplify REPL freelist setup
1 parent c36b8fe commit e609db7

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

CLI/src/Repl.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -730,10 +730,6 @@ static bool runFile(const char* name, lua_State* GL, bool repl)
730730
if (luau_load(L, chunkname.c_str(), bytecode.data(), bytecode.size(), 0) == 0)
731731
{
732732
replFreeObjects = lua_collectfreeobjects(L);
733-
// The thread and its globals table are per-script state, not free, even though
734-
// they were already on the stack.
735-
replFreeObjects.erase(lua_topointer(L, LUA_GLOBALSINDEX));
736-
replFreeObjects.erase((const void*)L);
737733
replBytecodeSize = bytecode.size();
738734

739735
if (sl)

0 commit comments

Comments
 (0)