pivotal/jasmine — pull request #257 by kevinoid (2012-07-19 20:23:43+00:00)
Title: 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 (e.g. using either http://stackoverflow.com/a/5767884 or https://gist.github.com/3146420 to provide setTimeout).

The attached commit fixes the issue by checking that exports is an object.