searls/jasmine-rails — pull request #137 by eomuraliev (2014-06-24 18:47:50+00:00)
Title: Replace Function.prototype.bind polyfill with one that works for the latest version of Phantomjs

The Function.prototype.bind polyfill used does not work with Phantomjs. Get the following error locally:
```
ERROR: TypeError: instanceof called on an object with an invalid prototype property.
TRACE:
...../jasmine/assets/jasmine-console-shims.js: 19
```
People had the same issue here: https://github.com/facebook/react/issues/945
React's polyfill for Function.prototype.bind addresses the issue.

This pull request is for replacing the existing polyfill, which looks it was copied from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind
with the one from react located at https://github.com/facebook/react/blob/master/src/test/phantomjs-shims.js

Alternatively, I could just fix the existing polyfill instead of replacing it, to make the diff smaller.