Repository navigation
Commit daa0e23
fix(env): pass Object.prototype members through the env proxy
`readKey` looked keys up with `registry.schema[key]`, which also finds
inherited members. With a schema registered, `env.hasOwnProperty`,
`env.constructor` and `String(env)` treated those members as validators
and threw a TypeError.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent afcc6d0 commit daa0e23
2 files changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
| 255 | + | |
| 256 | + | |
256 | 257 | | |
257 | 258 | | |
258 | 259 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
130 | 139 | | |
131 | 140 | | |
132 | 141 | | |
| |||
0 commit comments