Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't assume exports is defined when window is undefined
The current code makes the assumption that if window is undefined it is being run in an environment which supports the CommonJS Modules spec. This is not the case when Jasmine is being run in rhino or SpiderMonkey (smjs) without EnvJS. The fix is simply to check that exports is an object. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
- Loading branch information