Skip to content

Commit

Permalink
Merge pull request #257 from kevinoid/no-window-or-exports
Browse files Browse the repository at this point in the history
Don't assume exports is defined when window is undefined
  • Loading branch information
Davis W. Frank committed Sep 3, 2012
2 parents 4b48dc1 + 442f3bf commit 39a55d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/jasmine-core/jasmine.js
@@ -1,4 +1,4 @@
var isCommonJS = typeof window == "undefined";
var isCommonJS = typeof window == "undefined" && typeof exports == "object";

/**
* Top level namespace for Jasmine, a lightweight JavaScript BDD/spec/testing framework.
Expand Down
2 changes: 1 addition & 1 deletion src/core/base.js
@@ -1,4 +1,4 @@
var isCommonJS = typeof window == "undefined";
var isCommonJS = typeof window == "undefined" && typeof exports == "object";

/**
* Top level namespace for Jasmine, a lightweight JavaScript BDD/spec/testing framework.
Expand Down

0 comments on commit 39a55d8

Please sign in to comment.