Commit cab6433886184bdc1886b71f24a70c4c3ab21e78
polyfill no longer needed
wanderer committed on 9/12/2016, 10:03:24 PMParent: 7c4f6e88e8f137e372d224b9bca84d1803616938
Files changed
interface.js | changed |
interface.js | ||
---|---|---|
@@ -538,34 +538,4 @@ | ||
538 | 538 | } |
539 | 539 | this.environment.gasLeft -= amount |
540 | 540 | } |
541 | 541 | } |
542 | - | |
543 | -// | |
544 | -// Polyfill required unless this is sorted: https://bugs.chromium.org/p/chromium/issues/detail?id=633895 | |
545 | -// | |
546 | -// Polyfill from: https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_objects/Function/bind | |
547 | -// | |
548 | -Function.prototype.bind = function (oThis) { // eslint-disable-line | |
549 | - if (typeof this !== 'function') { | |
550 | - // closest thing possible to the ECMAScript 5 | |
551 | - // internal IsCallable function | |
552 | - throw new TypeError('Function.prototype.bind - what is trying to be bound is not callable') | |
553 | - } | |
554 | - | |
555 | - var aArgs = Array.prototype.slice.call(arguments, 1) | |
556 | - var fToBind = this | |
557 | - var fNOP = function () {} | |
558 | - var fBound = function () { | |
559 | - return fToBind.apply(this instanceof fNOP ? this : oThis, | |
560 | - aArgs.concat(Array.prototype.slice.call(arguments))) | |
561 | - } | |
562 | - | |
563 | - if (this.prototype) { | |
564 | - // Function.prototype doesn't have a prototype property | |
565 | - fNOP.prototype = this.prototype | |
566 | - } | |
567 | - | |
568 | - fBound.prototype = new fNOP() // eslint-disable-line new-cap | |
569 | - | |
570 | - return fBound | |
571 | -} |
Built with git-ssb-web