mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
Solved a function scope issue
This commit is contained in:
@@ -1195,6 +1195,9 @@ static void importStmt(Parser* parser, Node** nodeHandle) {
|
||||
emitNodeImport(nodeHandle, NODE_IMPORT, idn, alias);
|
||||
|
||||
consume(parser, TOKEN_SEMICOLON, "Expected ';' at end of import statement");
|
||||
|
||||
freeLiteral(idn);
|
||||
freeLiteral(alias);
|
||||
}
|
||||
|
||||
static void exportStmt(Parser* parser, Node** nodeHandle) {
|
||||
@@ -1217,6 +1220,9 @@ static void exportStmt(Parser* parser, Node** nodeHandle) {
|
||||
emitNodeImport(nodeHandle, NODE_EXPORT, idn, alias);
|
||||
|
||||
consume(parser, TOKEN_SEMICOLON, "Expected ';' at end of export statement");
|
||||
|
||||
freeLiteral(idn);
|
||||
freeLiteral(alias);
|
||||
}
|
||||
|
||||
//precedence functions
|
||||
|
||||
Reference in New Issue
Block a user