sinonjs/lolex — pull request #14 by mroderick (2014-12-11 11:28:46+00:00)
Title: Fix Sinon.JS issue 624

By first copying all the properties from `source` to `target` and only then setting specific functions for `now`, `toSource` and `toString`, we're not overwriting the custom implementation of those with the ones
from `source`.

Previously, the `for-in` at the end of the function, would overwrite the `now` function that we just created.

This fixes the root cause of https://github.com/cjohansen/Sinon.JS/issues/624