* Remove byte order marker. This catches EF BB BF (the UTF-8 BOM) * because the buffer-to-string conversion in `fs.readFileSync()` * translates it to FEFF, the UTF-16 BOM. * @param {string} content * @returns {string}
(content)
| 250 | * @returns {string} |
| 251 | */ |
| 252 | function stripBOM(content) { |
| 253 | if (StringPrototypeCharCodeAt(content) === 0xFEFF) { |
| 254 | content = StringPrototypeSlice(content, 1); |
| 255 | } |
| 256 | return content; |
| 257 | } |
| 258 | |
| 259 | /** |
| 260 | * Add built-in modules to a global or REPL scope object. |
no outgoing calls
no test coverage detected
searching dependent graphs…