Compiler perf: Count line numbers progressively (#7288)
Compiler perf: Count line numbers progressively (#7288)

* Don't use regexp to get line number

* Update pxtlib/jsoutput.ts

Co-authored-by: Richard Knoll <b5b41f37e7164f3ed0d8a69186b1cfa36c05a6a8@users.noreply.github.com>

* Update conditional to check for string type

Co-authored-by: Richard Knoll <b5b41f37e7164f3ed0d8a69186b1cfa36c05a6a8@users.noreply.github.com>
Microsoft/pxt,Microsoft/pxt,Microsoft/pxt,Microsoft/pxt,Microsoft/pxt