[Webkit-unassigned] [Bug 17547] New: JavaScriptCore print() differs from Spidermonkey Behavior

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 25 22:46:43 PST 2008


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

           Summary: JavaScriptCore print() differs from Spidermonkey
                    Behavior
           Product: WebKit
           Version: 525+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: bfulgham at gmail.com


Spidermonkey has the useful behavior of printing a newline when no argument is
passed:

print("abc")
print()
print("def")

yields:

abc

def

In JavaScriptCore, the same code yields:

abc
undefined
def

This can be easily worked around by passing an empty string, but it prevents
reuse of code between the two implementations.


-- 
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