typeset icon indicating copy to clipboard operation
typeset copied to clipboard

lineStart is used uninitialised in the flatLand example

Open thenickdude opened this issue 11 years ago • 1 comments

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.

thenickdude avatar Jul 06 '13 14:07 thenickdude

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).

PhilterPaper avatar Jan 21 '21 15:01 PhilterPaper