Ignore:
Timestamp:
Jun 7, 2008, 12:32:42 PM (17 years ago)
Author:
[email protected]
Message:

2008-06-07 Cameron Zwarich <[email protected]>

Reviewed by Sam.

Bug 17547: JavaScriptCore print() differs from Spidermonkey Behavior
<https://bugs.webkit.org/show_bug.cgi?id=17547>

  • kjs/testkjs.cpp: (functionPrint):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/testkjs.cpp

    r34412 r34428  
    160160JSValue* functionPrint(ExecState* exec, JSObject*, const List& args)
    161161{
    162     printf("%s\n", args[0]->toString(exec).UTF8String().c_str());
     162    if (!args.isEmpty())
     163        printf("%s\n", args[0]->toString(exec).UTF8String().c_str());
     164    else
     165        putchar('\n');
     166   
    163167    fflush(stdout);
    164168    return jsUndefined();
Note: See TracChangeset for help on using the changeset viewer.