Commit 17cb272
src: deduplicate
Instead of accepting either a std::string or a mysterious Local<Value>,
accept any std::string_view, which can trivially be constructed from
both strings and ArrayBufferViews.
This also removes the need to check IsArrayBufferView() inside of
SetALPN, which was dead code anyway.
PR-URL: #43756
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>SetALPN implementations1 parent b4c75a9 commit 17cb272Copy full SHA for 17cb272
File tree
Expand file treeCollapse file tree
3 files changed
+8
-17
lines changedOpen diff view settings
Filter options
- src/crypto
Expand file treeCollapse file tree
3 files changed
+8
-17
lines changedOpen diff view settings
Collapse file
src/crypto/crypto_common.cc
Copy file name to clipboardExpand all lines: src/crypto/crypto_common.cc+4-13Lines changed: 4 additions & 13 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
26 | 26 | |
27 | 27 | |
28 | 28 | |
29 | | - |
30 | 29 | |
31 | 30 | |
32 | 31 | |
| ||
87 | 86 | |
88 | 87 | |
89 | 88 | |
90 | | - |
91 | | - |
92 | | - |
93 | | - |
94 | | - |
95 | | - |
96 | | - |
97 | | - |
98 | | - |
99 | | - |
100 | | - |
101 | | - |
| 89 | + |
| 90 | + |
| 91 | + |
| 92 | + |
102 | 93 | |
103 | 94 | |
104 | 95 | |
|
Collapse file
+2-3Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
33 | 33 | |
34 | 34 | |
35 | 35 | |
36 | | - |
37 | | - |
38 | | - |
| 36 | + |
| 37 | + |
39 | 38 | |
40 | 39 | |
41 | 40 | |
|
Collapse file
+2-1Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1530 | 1530 | |
1531 | 1531 | |
1532 | 1532 | |
1533 | | - |
| 1533 | + |
| 1534 | + |
1534 | 1535 | |
1535 | 1536 | |
1536 | 1537 | |
|
0 commit comments