Commit b743f2c
lib: no need to strip BOM or shebang for scripts
Backport-PR-URL: #31228
PR-URL: #27375
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>1 parent 6c34ad6 commit b743f2cCopy full SHA for b743f2c
File tree
Expand file treeCollapse file tree
7 files changed
+21
-66
lines changedOpen diff view settings
Filter options
- lib/internal
- main
- modules
- cjs
- esm
- test
- fixtures
- parallel
- sequential
Expand file treeCollapse file tree
7 files changed
+21
-66
lines changedOpen diff view settings
Collapse file
lib/internal/main/check_syntax.js
Copy file name to clipboardExpand all lines: lib/internal/main/check_syntax.js+1-5Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
13 | 13 | |
14 | 14 | |
15 | 15 | |
16 | | - |
17 | | - |
18 | | - |
19 | | - |
20 | 16 | |
21 | 17 | |
22 | 18 | |
| ||
68 | 64 | |
69 | 65 | |
70 | 66 | |
71 | | - |
| 67 | + |
72 | 68 | |
Collapse file
lib/internal/modules/cjs/helpers.js
Copy file name to clipboardExpand all lines: lib/internal/modules/cjs/helpers.js-33Lines changed: 0 additions & 33 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
111 | 111 | |
112 | 112 | |
113 | 113 | |
114 | | - |
115 | | - |
116 | | - |
117 | | - |
118 | | - |
119 | | - |
120 | | - |
121 | | - |
122 | | - |
123 | | - |
124 | | - |
125 | | - |
126 | | - |
127 | | - |
128 | | - |
129 | | - |
130 | | - |
131 | | - |
132 | | - |
133 | | - |
134 | | - |
135 | | - |
136 | | - |
137 | | - |
138 | | - |
139 | | - |
140 | | - |
141 | | - |
142 | | - |
143 | | - |
144 | | - |
145 | 114 | |
146 | 115 | |
147 | 116 | |
| ||
208 | 177 | |
209 | 178 | |
210 | 179 | |
211 | | - |
212 | | - |
213 | 180 | |
Collapse file
lib/internal/modules/cjs/loader.js
Copy file name to clipboardExpand all lines: lib/internal/modules/cjs/loader.js+13-10Lines changed: 13 additions & 10 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
51 | 51 | |
52 | 52 | |
53 | 53 | |
54 | | - |
| 54 | + |
55 | 55 | |
56 | 56 | |
57 | 57 | |
| ||
961 | 961 | |
962 | 962 | |
963 | 963 | |
964 | | - |
| 964 | + |
965 | 965 | |
966 | | - |
| 966 | + |
967 | 967 | |
968 | 968 | |
969 | 969 | |
| ||
981 | 981 | |
982 | 982 | |
983 | 983 | |
984 | | - |
| 984 | + |
| 985 | + |
| 986 | + |
985 | 987 | |
986 | 988 | |
987 | 989 | |
988 | 990 | |
989 | 991 | |
990 | | - |
| 992 | + |
991 | 993 | |
992 | 994 | |
993 | 995 | |
994 | 996 | |
995 | 997 | |
996 | 998 | |
997 | 999 | |
998 | | - |
| 1000 | + |
999 | 1001 | |
1000 | 1002 | |
1001 | 1003 | |
1002 | 1004 | |
1003 | 1005 | |
1004 | 1006 | |
1005 | 1007 | |
| 1008 | + |
| 1009 | + |
1006 | 1010 | |
1007 | | - |
| 1011 | + |
| 1012 | + |
1008 | 1013 | |
1009 | 1014 | |
1010 | 1015 | |
1011 | | - |
1012 | | - |
1013 | | - |
| 1016 | + |
1014 | 1017 | |
1015 | 1018 | |
1016 | 1019 | |
|
Collapse file
lib/internal/modules/esm/translators.js
Copy file name to clipboardExpand all lines: lib/internal/modules/esm/translators.js+3-3Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
12 | 12 | |
13 | 13 | |
14 | 14 | |
15 | | - |
| 15 | + |
| 16 | + |
16 | 17 | |
17 | 18 | |
18 | 19 | |
| ||
78 | 79 | |
79 | 80 | |
80 | 81 | |
81 | | - |
82 | 82 | |
83 | | - |
| 83 | + |
84 | 84 | |
85 | 85 | |
86 | 86 | |
|
Collapse file
test/fixtures/utf8-bom-shebang-shebang.js
Copy file name to clipboard+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
Collapse file
test/parallel/test-internal-modules-strip-shebang.js
Copy file name to clipboardExpand all lines: test/parallel/test-internal-modules-strip-shebang.js-14Lines changed: 0 additions & 14 deletions
This file was deleted.
Collapse file
test/sequential/test-module-loading.js
Copy file name to clipboardExpand all lines: test/sequential/test-module-loading.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
355 | 355 | |
356 | 356 | |
357 | 357 | |
358 | | - |
| 358 | + |
359 | 359 | |
360 | 360 | |
361 | 361 | |
|
0 commit comments