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 8
8
* This info isn’t used yet but suchs functionality allows line wrapping,
9
9
* and theoretically source maps (though, is there practical use in that?).
10
10
*
11
- * @param {TrackFields } options
11
+ * @param {TrackFields } options_
12
12
*/
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
18
22
19
23
return { move, current, shift}
20
24
You can’t perform that action at this time.
0 commit comments