test: dedupe ownPropertyOnly magic-key tests

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Yang Jun
2026-06-20 00:51:07 +08:00
co-authored by Cursor
parent cd94bba730
commit c173505e78
2 changed files with 0 additions and 24 deletions
-9
View File
@@ -216,15 +216,6 @@ describe('Context', function () {
delete (Object.prototype as any).last
}
})
it('should treat bracket access like dot access for magic keys', function () {
Object.assign(Object.prototype, { size: 123 })
try {
ctx.push({ foo: {} })
expect(ctx.getSync(['foo', 'size'])).toEqual(0)
} finally {
delete (Object.prototype as any).size
}
})
})
describe('.getAll()', function () {