[Webkit-unassigned] [Bug 141670] Descriptor of Function.arguments is inconsistent

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 16 15:29:16 PST 2015


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

Joseph Pecoraro <joepeck at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |joepeck at webkit.org

--- Comment #1 from Joseph Pecoraro <joepeck at webkit.org> ---
Note, this affects Web Inspector. We look at descriptors when expanding objects. When the "arguments" property getter is invoked outside of an invocation of the function it produces an error:

  js> (function(){}).bind(this).arguments
  < TypeError: Type error

So when inspector tries to show the value of "arguments" in object expansion, we encounter the errors. It is a bit unfortunate and we may want to workaround this.

  js> dir(function(){}.bind(this))
  < function () { [native code] }
      arguments: [Exception: TypeError: Type error]
      caller: [Exception: TypeError: Type error]
      length: 0
      name: ""
      __proto__: function () {

-- 
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/20150216/9facc088/attachment-0002.html>


More information about the webkit-unassigned mailing list