In native Object.observe version (Chrome 28 & 30), array length is reported as part of the change records.
I don't think this is an error in Chrome, but I think JSON-Patch should filter out length from it's own generated patch
See http://jsfiddle.net/U4mZJ/3/
For a sample array, generated patch is:
[
{"op":"replace","path":"/0","value":99},
{"op":"add","path":"/2","value":3},
{"op":"replace","path":"/length","value":3}
]
I will fix this soon
In native Object.observe version (Chrome 28 & 30), array
lengthis reported as part of the change records.I don't think this is an error in Chrome, but I think JSON-Patch should filter out
lengthfrom it's own generated patchSee http://jsfiddle.net/U4mZJ/3/
For a sample array, generated patch is:
I will fix this soon