We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d606c4 commit 71c2c0aCopy full SHA for 71c2c0a
packages/reactivity/__tests__/effect.spec.ts
@@ -252,6 +252,22 @@ describe('reactivity/effect', () => {
252
expect(dummy).toBe(undefined)
253
})
254
255
+ it('should not observe well-known symbol keyed properties in has operation', () => {
256
+ const key = Symbol.isConcatSpreadable
257
+ const obj = reactive({
258
+ [key]: true,
259
+ }) as any
260
+
261
+ const spy = vi.fn(() => {
262
+ key in obj
263
+ })
264
+ effect(spy)
265
+ expect(spy).toHaveBeenCalledTimes(1)
266
267
+ obj[key] = false
268
269
270
271
it('should support manipulating an array while observing symbol keyed properties', () => {
272
const key = Symbol()
273
let dummy
0 commit comments