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), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows [commit guidelines][]
Affected core subsystem(s)
module