istanbuljs / nyc

the Istanbul command line interface
https://istanbul.js.org/
ISC License
5.55k stars 353 forks source link

nyc has a problem with escaped special characters #1479

Open jazz-soft opened 1 year ago

jazz-soft commented 1 year ago

Link to bug demonstration repository

https://github.com/jazz-soft/JZZ-midi-SF2/runs/7401443613

Expected Behavior

produce non-empty output

Observed Behavior

nyc produces empty output when the test file has a line var dummy = '\1';

Troubleshooting steps

works fine when changed to var dummy = '\x01';

Environment Information

  System:
    OS: Windows 10 10.0.22000
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
    Memory: 48.94 GB / 63.65 GB
  Binaries:
    Node: 18.4.0 - C:\Program Files\nodejs\node.EXE
    npm: 8.4.1 - C:\Program Files\nodejs\npm.CMD
  npmPackages:
    nyc: ^15.1.0 => 15.1.0