Commit 888d4c0
committed
fix(types): restore null sentinel for ObjectCreate / ReflectSetPrototypeOf
prefer-undefined-over-null autofix converted 5 sites where the Node API
contract requires `null` specifically:
* helpers.ts: 2× ObjectCreate(null) for null-prototype proxy targets
* normalize.ts: 1× ObjectCreate(null) for qualifiers map
* package-url.ts: 1× ObjectCreate(null) for qualifiers copy, 1×
ReflectSetPrototypeOf(PackageURL.prototype, null) for the
null-prototype prototype-chain root
All flipped back to `null` with inline `socket/prefer-undefined-over-null`
disables explaining the Node API constraint. tsgo check now passes.1 parent 1693541 commit 888d4c0
3 files changed
Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
44 | | - | |
| 45 | + | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
| 118 | + | |
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
| 254 | + | |
| 255 | + | |
255 | 256 | | |
256 | 257 | | |
257 | 258 | | |
| |||
897 | 898 | | |
898 | 899 | | |
899 | 900 | | |
900 | | - | |
| 901 | + | |
| 902 | + | |
901 | 903 | | |
902 | 904 | | |
903 | 905 | | |
| |||
0 commit comments