fix(reactivity): ensure add/set on reactive collections return the proxy (#2534)
fix #2530
This commit is contained in:
@@ -133,5 +133,10 @@ describe('reactivity/collections', () => {
|
||||
map.set(key, NaN)
|
||||
expect(mapSpy).toHaveBeenCalledTimes(1)
|
||||
})
|
||||
it('should return proxy from WeakMap.set call', () => {
|
||||
const map = reactive(new WeakMap())
|
||||
const result = map.set({}, 'a')
|
||||
expect(result).toBe(map)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user