Commit 2a66cd3
module: simpler shebang function
This simplifies the shebang function significantly. Before, it was
optimized for two characters input. Any module actually parsed should
however have more characters than just the shebang.
The performance stays the same as before.
PR-URL: #26266
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 0c8e9ee commit 2a66cd3Copy full SHA for 2a66cd3
File tree
Expand file treeCollapse file tree
1 file changed
+11
-32
lines changedOpen diff view settings
Filter options
- lib/internal/modules/cjs
Expand file treeCollapse file tree
1 file changed
+11
-32
lines changedOpen diff view settings
Collapse file
lib/internal/modules/cjs/helpers.js
Copy file name to clipboardExpand all lines: lib/internal/modules/cjs/helpers.js+11-32Lines changed: 11 additions & 32 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
5 | 5 | |
6 | 6 | |
7 | 7 | |
8 | | - |
9 | | - |
10 | | - |
11 | | - |
12 | | - |
13 | | - |
14 | | - |
15 | 8 | |
16 | 9 | |
17 | 10 | |
| ||
67 | 60 | |
68 | 61 | |
69 | 62 | |
70 | | - |
71 | | - |
72 | | - |
73 | | - |
74 | | - |
75 | | - |
76 | | - |
77 | | - |
78 | | - |
79 | | - |
80 | | - |
81 | | - |
82 | | - |
83 | | - |
84 | | - |
85 | | - |
86 | | - |
87 | | - |
88 | | - |
89 | | - |
90 | | - |
91 | | - |
92 | | - |
93 | | - |
94 | | - |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
95 | 74 | |
96 | 75 | |
97 | 76 | |
|
0 commit comments