juliangruber/audio-context — pull request #2 by oncletom (2014-07-28 13:19:34+00:00)
Title: 'ReferenceError: window is not defined' error fix

Running `node test.js` would fail as `window` is not a global variable.

This PR does two things:

- the module is now testable in a non-browser environment
- the module sets its dependency on the global `window` object through the [global](https://www.npmjs.org/package/global) module

![](http://ljdchost.com/pD99niY.gif)