Title: [95592] trunk/Tools
- Revision
- 95592
- Author
- [email protected]
- Date
- 2011-09-20 18:48:50 -0700 (Tue, 20 Sep 2011)
Log 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:
Modified Paths
Diff
Modified: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/base.js (95591 => 95592)
--- trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/base.js 2011-09-21 01:30:06 UTC (rev 95591)
+++ trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/base.js 2011-09-21 01:48:50 UTC (rev 95592)
@@ -27,6 +27,17 @@
(function(){
+// Safari 5.1 lacks Function.prototype.bind.
+if (!('bind' in Function.prototype)) {
+ Function.prototype.bind = function(thisObject) {
+ var method = this;
+ var boundArguments = [].concat(arguments).slice(1);
+ return function() {
+ return method.apply(thisObject, boundArguments.concat(arguments));
+ }
+ }
+}
+
base.asInteger = function(stringOrInteger)
{
if (typeof stringOrInteger == 'string')
Modified: trunk/Tools/ChangeLog (95591 => 95592)
--- trunk/Tools/ChangeLog 2011-09-21 01:30:06 UTC (rev 95591)
+++ trunk/Tools/ChangeLog 2011-09-21 01:48:50 UTC (rev 95592)
@@ -1,3 +1,14 @@
+2011-09-20 Adam Barth <[email protected]>
+
+ 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:
+
2011-09-20 Eric Seidel <[email protected]>
[NRWT] REGRESSION: Local loader tests are failing on machines that lost /tmp/LayoutTests symlink
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes