You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an uninitialized variable is called plush panics. Due to parseLetStatement() returns nil if the next token isn't =. As a result, when parseProgram() calls stmt.String() it panics as stmt is holding a nil value.
To Reproduce
let foo
if (foo){
foo = 1
}
The text was updated successfully, but these errors were encountered:
(Note for future reference: The description is almost correct but the condition is not "when an uninitialized variable is called" but "the let statement is not correctly used without equal sign".)
I reverted merged PR #171 with #172. Please take a look at the comments on PR #171 and please consider filing a new PR! I will do my best to review that this time! (Sorry again for the delayed review :-)
Description
When an uninitialized variable is called plush panics. Due to
parseLetStatement()
returns nil if the next token isn't=
. As a result, whenparseProgram()
callsstmt.String()
it panics as stmt is holding a nil value.To Reproduce
The text was updated successfully, but these errors were encountered: