Commit 54635f5
http: fix monkey-patching of http_parser
Fixes inability to monkey-patch the HTTP Parser on Node v12.x.
This is not an issue on Node v13+ since the parser was renamed
back to the old (already monkey-patchable) `http_parser` name,
however the test in master could also use updating.
Fixes: creationix/http-parser-js#65
PR-URL: #30222
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaël Zasso <targos@protonmail.com>1 parent 008ac37 commit 54635f5Copy full SHA for 54635f5
File tree
Expand file treeCollapse file tree
2 files changed
+8
-3
lines changedOpen diff view settings
Filter options
- lib/internal/bootstrap
- test/parallel
Expand file treeCollapse file tree
2 files changed
+8
-3
lines changedOpen diff view settings
Collapse file
lib/internal/bootstrap/loaders.js
Copy file name to clipboardExpand all lines: lib/internal/bootstrap/loaders.js+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
75 | 75 | |
76 | 76 | |
77 | 77 | |
| 78 | + |
78 | 79 | |
79 | 80 | |
80 | 81 | |
|
Collapse file
test/parallel/test-http-parser-lazy-loaded.js
Copy file name to clipboardExpand all lines: test/parallel/test-http-parser-lazy-loaded.js+7-3Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2 | 2 | |
3 | 3 | |
4 | 4 | |
5 | | - |
6 | 5 | |
7 | 6 | |
8 | 7 | |
| ||
16 | 15 | |
17 | 16 | |
18 | 17 | |
| 18 | + |
| 19 | + |
| 20 | + |
19 | 21 | |
20 | 22 | |
21 | | - |
| 23 | + |
22 | 24 | |
23 | 25 | |
24 | 26 | |
| ||
34 | 36 | |
35 | 37 | |
36 | 38 | |
37 | | - |
| 39 | + |
| 40 | + |
| 41 | + |
38 | 42 | |
39 | 43 | |
40 | 44 | |
|
0 commit comments