File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 88 * This info isn’t used yet but suchs functionality allows line wrapping,
99 * and theoretically source maps (though, is there practical use in that?).
1010 *
11- * @param {TrackFields } options
11+ * @param {TrackFields } options_
1212 */
13- export function track ( options ) {
14- const now = options . now
15- let lineShift = options . lineShift
16- let line = now . line
17- let column = now . column
13+ export function track ( options_ ) {
14+ // Defaults are used to prevent crashes when older utilities somehow activate
15+ // this code.
16+ /* c8 ignore next 5 */
17+ const options = options_ || { }
18+ const now = options . now || { }
19+ let lineShift = options . lineShift || 0
20+ let line = now . line || 1
21+ let column = now . column || 1
1822
1923 return { move, current, shift}
2024
You can’t perform that action at this time.
0 commit comments