cjohansen/Sinon.JS — pull request #139 by caseman (2012-06-10 18:37:16+00:00)
Title: Fix for "ReferenceError: window is not defined" in node.js

I was encountering this error loading sinon.js in node with requirejs (for tests that run both in browser and node). Changing the config to not use a fake server by default did not help.

var wloc = window.location;
^
ReferenceError: window is not defined