Commit c7b7f2b
lib: add lint rule to protect against
PR-URL: #45061
Reviewed-By: Jacob Smith <jacob@frende.me>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>Object.prototype.then pollution1 parent 93a34fa commit c7b7f2bCopy full SHA for c7b7f2b
File tree
Expand file treeCollapse file tree
10 files changed
+98
-33
lines changedOpen diff view settings
Filter options
- lib/internal
- crypto
- fs
- cp
- modules/esm
- webstreams
- test/parallel
- tools/eslint-rules
Expand file treeCollapse file tree
10 files changed
+98
-33
lines changedOpen diff view settings
Collapse file
lib/internal/crypto/cfrg.js
Copy file name to clipboardExpand all lines: lib/internal/crypto/cfrg.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
188 | 188 | |
189 | 189 | |
190 | 190 | |
191 | | - |
| 191 | + |
192 | 192 | |
193 | 193 | |
194 | 194 | |
|
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
146 | 146 | |
147 | 147 | |
148 | 148 | |
149 | | - |
| 149 | + |
150 | 150 | |
151 | 151 | |
152 | 152 | |
|
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
219 | 219 | |
220 | 220 | |
221 | 221 | |
222 | | - |
| 222 | + |
223 | 223 | |
224 | 224 | |
225 | 225 | |
|
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
115 | 115 | |
116 | 116 | |
117 | 117 | |
118 | | - |
| 118 | + |
119 | 119 | |
120 | 120 | |
121 | 121 | |
|
Collapse file
lib/internal/fs/promises.js
Copy file name to clipboardExpand all lines: lib/internal/fs/promises.js+8-8Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
580 | 580 | |
581 | 581 | |
582 | 582 | |
583 | | - |
| 583 | + |
584 | 584 | |
585 | 585 | |
586 | 586 | |
| ||
595 | 595 | |
596 | 596 | |
597 | 597 | |
598 | | - |
| 598 | + |
599 | 599 | |
600 | 600 | |
601 | 601 | |
| ||
606 | 606 | |
607 | 607 | |
608 | 608 | |
609 | | - |
| 609 | + |
610 | 610 | |
611 | 611 | |
612 | 612 | |
613 | 613 | |
614 | | - |
| 614 | + |
615 | 615 | |
616 | 616 | |
617 | 617 | |
| ||
636 | 636 | |
637 | 637 | |
638 | 638 | |
639 | | - |
| 639 | + |
640 | 640 | |
641 | 641 | |
642 | 642 | |
643 | 643 | |
644 | 644 | |
645 | 645 | |
646 | | - |
| 646 | + |
647 | 647 | |
648 | 648 | |
649 | 649 | |
| ||
653 | 653 | |
654 | 654 | |
655 | 655 | |
656 | | - |
| 656 | + |
657 | 657 | |
658 | 658 | |
659 | 659 | |
660 | 660 | |
661 | | - |
| 661 | + |
662 | 662 | |
663 | 663 | |
664 | 664 | |
|
Collapse file
lib/internal/modules/esm/loader.js
Copy file name to clipboardExpand all lines: lib/internal/modules/esm/loader.js+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
378 | 378 | |
379 | 379 | |
380 | 380 | |
| 381 | + |
381 | 382 | |
382 | 383 | |
383 | 384 | |
|
Collapse file
lib/internal/modules/esm/resolve.js
Copy file name to clipboardExpand all lines: lib/internal/modules/esm/resolve.js+3-2Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
977 | 977 | |
978 | 978 | |
979 | 979 | |
980 | | - |
| 980 | + |
981 | 981 | |
982 | 982 | |
983 | 983 | |
| ||
1035 | 1035 | |
1036 | 1036 | |
1037 | 1037 | |
1038 | | - |
| 1038 | + |
1039 | 1039 | |
1040 | 1040 | |
1041 | 1041 | |
| ||
1087 | 1087 | |
1088 | 1088 | |
1089 | 1089 | |
| 1090 | + |
1090 | 1091 | |
1091 | 1092 | |
1092 | 1093 | |
|
Collapse file
lib/internal/webstreams/readablestream.js
Copy file name to clipboardExpand all lines: lib/internal/webstreams/readablestream.js+3-3Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
476 | 476 | |
477 | 477 | |
478 | 478 | |
479 | | - |
| 479 | + |
480 | 480 | |
481 | 481 | |
482 | 482 | |
| ||
488 | 488 | |
489 | 489 | |
490 | 490 | |
491 | | - |
| 491 | + |
492 | 492 | |
493 | 493 | |
494 | 494 | |
495 | | - |
| 495 | + |
496 | 496 | |
497 | 497 | |
498 | 498 | |
|
Collapse file
test/parallel/test-eslint-avoid-prototype-pollution.js
Copy file name to clipboardExpand all lines: test/parallel/test-eslint-avoid-prototype-pollution.js+39Lines changed: 39 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
45 | 45 | |
46 | 46 | |
47 | 47 | |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
48 | 59 | |
49 | 60 | |
50 | 61 | |
| ||
150 | 161 | |
151 | 162 | |
152 | 163 | |
| 164 | + |
| 165 | + |
| 166 | + |
| 167 | + |
| 168 | + |
| 169 | + |
| 170 | + |
| 171 | + |
| 172 | + |
| 173 | + |
| 174 | + |
| 175 | + |
| 176 | + |
| 177 | + |
| 178 | + |
| 179 | + |
| 180 | + |
| 181 | + |
| 182 | + |
| 183 | + |
| 184 | + |
| 185 | + |
| 186 | + |
| 187 | + |
| 188 | + |
| 189 | + |
| 190 | + |
| 191 | + |
153 | 192 | |
154 | 193 | |
155 | 194 | |
|
Collapse file
tools/eslint-rules/avoid-prototype-pollution.js
Copy file name to clipboardExpand all lines: tools/eslint-rules/avoid-prototype-pollution.js+40-16Lines changed: 40 additions & 16 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
| 4 | + |
4 | 5 | |
5 | 6 | |
6 | 7 | |
| ||
25 | 26 | |
26 | 27 | |
27 | 28 | |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
28 | 45 | |
29 | 46 | |
30 | 47 | |
| ||
46 | 63 | |
47 | 64 | |
48 | 65 | |
49 | | - |
50 | | - |
51 | | - |
52 | | - |
53 | | - |
54 | | - |
55 | | - |
56 | | - |
57 | | - |
58 | | - |
59 | | - |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | + |
60 | 71 | |
61 | | - |
62 | | - |
63 | | - |
64 | | - |
65 | | - |
66 | 72 | |
67 | 73 | |
68 | 74 | |
| ||
117 | 123 | |
118 | 124 | |
119 | 125 | |
| 126 | + |
| 127 | + |
| 128 | + |
| 129 | + |
| 130 | + |
| 131 | + |
| 132 | + |
| 133 | + |
| 134 | + |
| 135 | + |
| 136 | + |
| 137 | + |
| 138 | + |
| 139 | + |
| 140 | + |
| 141 | + |
| 142 | + |
| 143 | + |
120 | 144 | |
121 | 145 | |
122 | 146 | |
|
0 commit comments