[Webkit-unassigned] [Bug 7831] New: .apply/call does not set this for eval

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Fri Mar 17 10:41:03 PST 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=7831

           Summary: .apply/call does not set this for eval
           Product: WebKit
           Version: 420+ (nightly)
          Platform: Macintosh
        OS/Version: Mac OS X 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: JavaScript
        AssignedTo: webkit-unassigned at opendarwin.org
        ReportedBy: tolmasky at gmail.com


Since eval simply ignores the this argument and always opts for the calling
context's this or the global object, using eval.apply(something, args) does not
work.  ECMA is somewhat unclear about this (10.2 says to use the calling
context's this object), but I think it's pretty clear that if you explicitly
ask to use another this then you should, given that that is basically the point
of apply/call.  Firefox handles this the same way Safari currently does
(incorrectly in my opinion).


-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list