mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 22:28:45 +01:00
Set the token type after an invalid character error.
Otherwise, it still has the previous token's type. This can cause it to get stuck in a loop in some places in the compiler. Fix #428.
This commit is contained in:
6
test/regression/428.wren
Normal file
6
test/regression/428.wren
Normal file
@ -0,0 +1,6 @@
|
||||
// This was crashing the compiler with an out of bounds memory access.
|
||||
|
||||
// expect error line 6
|
||||
// expect error line 7
|
||||
Fiber.new {
|
||||
isDone ["", àààààààààààààààààààààààààààààààààààààààààààààààààà
|
||||
Reference in New Issue
Block a user