mirror of
https://github.com/CPunch/Cosmo.git
synced 2025-10-19 23:40:54 +00:00
fixed needless pop in _main chunk
This commit is contained in:
@@ -1206,7 +1206,7 @@ CObjFunction* cosmoP_compileString(CState *state, const char *source) {
|
||||
|
||||
consume(&parser, TOKEN_EOF, "End of file expected!");
|
||||
|
||||
popLocals(&parser, -1); // needed to close over the values
|
||||
popLocals(&parser, 0);
|
||||
|
||||
if (parser.hadError) { // we don't free the function, the state already has a reference to it in it's linked list of objects!
|
||||
endCompiler(&parser);
|
||||
|
Reference in New Issue
Block a user