Changeset 34728 in webkit


Ignore:
Timestamp:
Jun 21, 2008 6:35:58 PM (16 years ago)
Author:
mrowe@apple.com
Message:

Print a blank line when exiting the jsc interactive mode to ensure that the shell
prompt will start on a new line.

Reviewed by Sam Weinig.

  • kjs/Shell.cpp:

(runInteractive):

Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r34727 r34728  
     12008-06-21  Mark Rowe  <mrowe@apple.com>
     2
     3        Reviewed by Sam Weinig.
     4
     5        Print a blank line when exiting the jsc interactive mode to ensure that the shell
     6        prompt will start on a new line.
     7
     8        * kjs/Shell.cpp:
     9        (runInteractive):
     10
    1112008-06-21  Mark Rowe  <mrowe@apple.com>
    212
  • trunk/JavaScriptCore/kjs/Shell.cpp

    r34673 r34728  
    348348
    349349static void runInteractive(GlobalObject* globalObject)
    350 {   
    351     bool done = false;
    352     while (!done) {
     350{
     351    while (true) {
    353352#if HAVE(READLINE)
    354353        char* line = readline(interactivePrompt);
     
    375374            printf("%s\n", completion.value()->toString(globalObject->globalExec()).UTF8String().c_str());
    376375    }
     376    printf("\n");
    377377}
    378378
Note: See TracChangeset for help on using the changeset viewer.