[Webkit-unassigned] [Bug 140295] (function(arg1) {}.bind(window)).length results in 0

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Aug 21 11:49:24 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=140295

Alexey Shvayka <shvaikalesh at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |shvaikalesh at gmail.com
         Resolution|---                         |WORKSFORME

--- Comment #4 from Alexey Shvayka <shvaikalesh at gmail.com> ---
(In reply to sarimarton from comment #0)
> (function(arg1) {}.bind(window)).length results in 0 instead of 1.

(In reply to sarimarton from comment #3)
> I'm using PhantomJS 1.9.7 on Windows and Unix.

At that time, PhantomJS was shipped with a rather outdated version of WebKit.
As of v2.1.1 (macOS), Function.prototype.bind returns correct "length" of 1.

Also works as expected in Safari 13.1 and r265666.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200821/3b093cb6/attachment.htm>


More information about the webkit-unassigned mailing list