Skip to content

module: standardize strip shebang behaviour

When loading a module, Node needs to finds the end of a shebang comment by searching for a \r or \n character. This behaviour is now standardized into a dedicated internal module function

Refs: https://github.com/nodejs/node/issues/12180

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows [commit guidelines][]
Affected core subsystem(s)

module

Merge request reports

Loading