git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit cab6433886184bdc1886b71f24a70c4c3ab21e78

polyfill no longer needed

wanderer committed on 9/12/2016, 10:03:24 PM
Parent: 7c4f6e88e8f137e372d224b9bca84d1803616938

Files changed

interface.jschanged
interface.jsView
@@ -538,34 +538,4 @@
538538 }
539539 this.environment.gasLeft -= amount
540540 }
541541 }
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