eriwen/javascript-stacktrace — pull request #39 by scheib (2012-04-05 21:25:27+00:00)
Title: When running under nodejs location is undefined, correct isSameDomain to not throw exception.

Including stacktrace.js into code running on a nodejs server will result in exceptions being thrown when the 'location' global is accessed, it is not defined when running on nodejs.

This fix does a simple detect for that and returns false from isSameDomain.