typeset
typeset copied to clipboard
lineStart is used uninitialised in the flatLand example
The variable lineStart is declared uninitialised on line 121 of /bramstein/typeset/blob/master/examples/flatland/index.html , then later read on line 176 with no intervening write.
Same problem in examples/article/browser-assist.js. In examples/article/index.html, it appears to have been addressed by initializing it to 0 before the first loop. I haven't examined the code carefully, but I suspect that initializing lineStart = 0
where it is declared should do the trick (assuming the logic in browser-assist.js and flatland/index.html are using it in the same way).