Changeset 34728 in webkit for trunk/JavaScriptCore/kjs/Shell.cpp


Ignore:
Timestamp:
Jun 21, 2008, 6:35:58 PM (17 years ago)
Author:
[email protected]
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):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.