After using Object.getOwnPropertyNames, use sort() in order to make sure that the ordering will be consistent across builds, this means that diffs will be a lot less noisy.