Repository navigation
Commit e71c70e
test(app-shell): spell the
`fields: { __proto__: … }` in an object literal is the Annex B.3.1 prototype
setter: it sets `[[Prototype]]` and creates no own key, so the instrument
assertion was parsing `fields: {}` and asserting an empty field map is legal.
It would have stayed green if `ObjectSchema` began refusing the name.
Spell the fixture `['__proto__']` so it carries the key it claims to, and pin
the literal-versus-computed distinction as an executable control rather than a
comment, mirroring `MetadataFieldsPage.fieldsMapKeying.test.tsx`. The two
request-byte assertions are honest already — they read `JSON.parse` output,
where `__proto__` is an own property — and keep their assertions; one comment
records why that provenance is what makes them honest.
Claude-Session: https://claude.ai/code/session_011SfZeFWrhGLHmfq61xbz4q
Co-authored-by: Claude <noreply@anthropic.com>__proto__ instrument fixture as a computed key (#6544)1 parent b49f9a1 commit e71c70e
2 files changed
Lines changed: 23 additions & 1 deletion
File tree
- .changeset
- packages/app-shell/src/services
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
156 | 166 | | |
157 | 167 | | |
158 | 168 | | |
| |||
359 | 369 | | |
360 | 370 | | |
361 | 371 | | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
362 | 375 | | |
363 | 376 | | |
364 | 377 | | |
| |||
0 commit comments