wip bug-771339-function-patching part 1 - object-diff-patch