JSONPatcherProxy icon indicating copy to clipboard operation
JSONPatcherProxy copied to clipboard

JSONPatcherProxy is incombatible with external deep proxies

Open warpech opened this issue 6 years ago • 0 comments

Steps to reproduce

  1. Have an object that has a deep structure
  2. Replace a subbranch in that object with a simple proxied version of that object

Expected result

JSONPatcherProxy should observe changes to that object as usual, i.e. with the same behavior as in the initial object.

Actual result

Some traps are set twice, also the replacement of the proxified object is detected as a replace operation.

I have an idea how to solve it using Symbol instead of Map. I am preparing a fix for that.

warpech avatar Jun 03 '19 07:06 warpech