Changeset 95592 in webkit


Ignore:
Timestamp:
Sep 20, 2011 6:48:50 PM (13 years ago)
Author:
abarth@webkit.org
Message:

garden-o-matic doesn't work in Safari 5.1 because Safari 5.1 lacks Function.prototype.bind
https://bugs.webkit.org/show_bug.cgi?id=68495

Reviewed by Dimitri Glazkov.

This patch adds an implementation of Function.prototype.bind if the browser lacks one.

  • BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/base.js:
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/base.js

    r94487 r95592  
    2828(function(){
    2929
     30// Safari 5.1 lacks Function.prototype.bind.
     31if (!('bind' in Function.prototype)) {
     32    Function.prototype.bind = function(thisObject) {
     33        var method = this;
     34        var boundArguments = [].concat(arguments).slice(1);
     35        return function() {
     36            return method.apply(thisObject, boundArguments.concat(arguments));
     37        }
     38    }
     39}
     40
    3041base.asInteger = function(stringOrInteger)
    3142{
  • trunk/Tools/ChangeLog

    r95588 r95592  
     12011-09-20  Adam Barth  <abarth@webkit.org>
     2
     3        garden-o-matic doesn't work in Safari 5.1 because Safari 5.1 lacks Function.prototype.bind
     4        https://bugs.webkit.org/show_bug.cgi?id=68495
     5
     6        Reviewed by Dimitri Glazkov.
     7
     8        This patch adds an implementation of Function.prototype.bind if the browser lacks one.
     9
     10        * BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/base.js:
     11
    1122011-09-20  Eric Seidel  <eric@webkit.org>
    213
Note: See TracChangeset for help on using the changeset viewer.