[Webkit-unassigned] [Bug 16498] New: ''.constructor.toString() gives [function]

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 17 20:53:10 PST 2007


http://bugs.webkit.org/show_bug.cgi?id=16498

           Summary: ''.constructor.toString() gives [function]
           Product: WebKit
           Version: 523.x (Safari 3)
          Platform: Macintosh
               URL: http://crschmidt.net/projects/webkit/tostring.html
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: crschmidt at crschmidt.net


''.constructor.toString() gives back "[function]" in Safari. In FF and Opera
(and I believe IE) this returns:

>>> ''.constructor.toString()
function String() { [native code] }

or something similar.

(Test.AnotherWay uses this as a way to determine what type of object something
is for some reason I'm not sure I understand, which is how I bumped into it.)


-- 
Configure bugmail: http://bugs.webkit.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