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
I found an issue when passing the string "()", "[]" or "{}" to Compiler tokensForString. The first token returned has its line slot set to 0.
When i pass any other string, such as "Foo bar()", the first token has the line slot set to one.
The following command should return true
Compiler tokensForString("()") at(0) line == Compiler tokensForString("a") at(0) line
The text was updated successfully, but these errors were encountered:
A while back when I was profiling Io using valgrind + kcachegrind, that tool found a reference to uninitialized memory in Lexer.c. Maybe the line = 0 you are seeing is uninitialized memory? I didn't have time to investigate it further at the time.
I found an issue when passing the string "()", "[]" or "{}" to Compiler tokensForString. The first token returned has its line slot set to 0.
When i pass any other string, such as "Foo bar()", the first token has the line slot set to one.
The following command should return true
Compiler tokensForString("()") at(0) line == Compiler tokensForString("a") at(0) line
The text was updated successfully, but these errors were encountered: