kriskowal/es5-shim — pull request #137 by sstur (2012-10-27 03:17:42+00:00)
Title: add typeof check for document so can be used outside of browser

The Object.create trick works great for browsers that don't support __proto__ but if we want to use this library *outside* the browser in an environment like [Windows Script Host](http://en.wikipedia.org/wiki/Windows_Script_Host) we can't use document.