Commit 433902e
committed
tls: use primordials in wrap.js
Replace native array methods (.push) with primordials (ArrayPrototypePush)
in lib/internal/tls/wrap.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 433902e
1 file changed
+3
-2
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 | | |
| |||
246 | 247 | | |
247 | 248 | | |
248 | 249 | | |
249 | | - | |
| 250 | + | |
250 | 251 | | |
251 | 252 | | |
252 | 253 | | |
| |||
1550 | 1551 | | |
1551 | 1552 | | |
1552 | 1553 | | |
1553 | | - | |
| 1554 | + | |
1554 | 1555 | | |
1555 | 1556 | | |
1556 | 1557 | | |
| |||
0 commit comments