os: lazy loaded · nodejs/node@28d00a1 · GitHub
Skip to content

Commit 28d00a1

Browse files
BridgeARMylesBorins
authored andcommitted
os: lazy loaded
PR-URL: #20567 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
1 parent 3eb38de commit 28d00a1

3 files changed

Lines changed: 11 additions & 4 deletions

File tree

lib/assert.js

Lines changed: 1 addition & 1 deletion

lib/internal/constants.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
'use strict';
22

3+
const isWindows = process.platform === 'win32';
4+
35
module.exports = {
46
// Alphabet chars.
57
CHAR_UPPERCASE_A: 65, /* A */
@@ -45,4 +47,6 @@ module.exports = {
4547
// Digits
4648
CHAR_0: 48, /* 0 */
4749
CHAR_9: 57, /* 9 */
50+
51+
EOL: isWindows ? '\r\n' : '\n'
4852
};

lib/internal/tty.js

Lines changed: 6 additions & 3 deletions

0 commit comments

Comments
 (0)