parent
452edb73cb
commit
7edfdf7e23
@ -759,7 +759,7 @@ describe('reactivity/effect', () => {
|
||||
expect(fnSpy).toHaveBeenCalledTimes(1)
|
||||
})
|
||||
|
||||
it('should trigger all effects when array length is set 0', () => {
|
||||
it('should trigger all effects when array length is set to 0', () => {
|
||||
const observed: any = reactive([1])
|
||||
let dummy, record
|
||||
effect(() => {
|
||||
|
@ -142,7 +142,9 @@ function deleteProperty(target: object, key: string | symbol): boolean {
|
||||
|
||||
function has(target: object, key: string | symbol): boolean {
|
||||
const result = Reflect.has(target, key)
|
||||
if (!isSymbol(key) || !builtInSymbols.has(key)) {
|
||||
track(target, TrackOpTypes.HAS, key)
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user