How did I not catch that earlier... need to _check_, not match, EOL on return statement
This commit is contained in:
parent
b676df69da
commit
31751745cd
@ -1109,7 +1109,7 @@ static void forStatement() {
|
||||
}
|
||||
|
||||
static void returnStatement() {
|
||||
if (match(TOKEN_EOL) || match(TOKEN_EOF)) {
|
||||
if (check(TOKEN_EOL) || check(TOKEN_EOF)) {
|
||||
emitReturn();
|
||||
} else {
|
||||
if (current->type == TYPE_INIT) {
|
||||
|
Loading…
Reference in New Issue
Block a user