Changeset 225333 in webkit


Ignore:
Timestamp:
Nov 30, 2017 11:12:01 AM (6 years ago)
Author:
msaboff@apple.com
Message:

Allow JSC command line tool to accept UTF8
https://bugs.webkit.org/show_bug.cgi?id=180205

Reviewed by Keith Miller.

This unifies the UTF8 handling of interactive mode with that of source files.

  • jsc.cpp:

(runInteractive):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r225322 r225333  
     12017-11-30  Michael Saboff  <msaboff@apple.com>
     2
     3        Allow JSC command line tool to accept UTF8
     4        https://bugs.webkit.org/show_bug.cgi?id=180205
     5
     6        Reviewed by Keith Miller.
     7
     8        This unifies the UTF8 handling of interactive mode with that of source files.
     9
     10        * jsc.cpp:
     11        (runInteractive):
     12
    1132017-11-30  Yusuke Suzuki  <utatane.tea@gmail.com>
    214
  • trunk/Source/JavaScriptCore/jsc.cpp

    r225129 r225333  
    23112311            if (!line)
    23122312                break;
    2313             source = source + line;
     2313            source = source + String::fromUTF8(line);
    23142314            source = source + '\n';
    23152315            checkSyntax(vm, makeSource(source, sourceOrigin), error);
Note: See TracChangeset for help on using the changeset viewer.