[Webkit-unassigned] [Bug 148681] New: Functions with non-simple parameter list should have poisoned arguments.callee and arguments.caller (even outside strict mode)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 1 10:11:12 PDT 2015


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

            Bug ID: 148681
           Summary: Functions with non-simple parameter list should have
                    poisoned arguments.callee and arguments.caller (even
                    outside strict mode)
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: claude.pache at gmail.com

For example:

    (function (x = 1) { return arguments.callee })() // should throw, even in sloppy mode

For reference, see step 22 of: http://www.ecma-international.org/ecma-262/6.0/#sec-functiondeclarationinstantiation

In short, the spec recognizes two types of Arguments objects:
* mapped Arguments object, used for sloppy-mode simple-parameter-list functions;
* unmapped Arguments object with poisoned `callee`/`caller`, used for anything else.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150901/8cb4306b/attachment.html>


More information about the webkit-unassigned mailing list