Commit 74cf39c
committed
tls: use primordials in common.js
Replace native array method (.push) with primordials (ArrayPrototypePush)
in lib/internal/tls/common.js for consistency and security. This improves
protection against prototype pollution and aligns with the primordials
pattern used throughout the codebase.1 parent 879b95e commit 74cf39c
1 file changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
141 | 142 | | |
142 | 143 | | |
143 | 144 | | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
| |||
0 commit comments