Skip to content

Commit 04e801d

Browse files
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): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@225333 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent 6aafcb9 commit 04e801d

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

Source/JavaScriptCore/ChangeLog

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
2017-11-30 Michael Saboff <[email protected]>
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+
113
2017-11-30 Yusuke Suzuki <[email protected]>
214

315
REGRESSION(r225314): [Linux] More than 2000 jsc tests are failing after r225314

Source/JavaScriptCore/jsc.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2310,7 +2310,7 @@ static void runInteractive(GlobalObject* globalObject)
23102310
shouldQuit = !line;
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);
23162316
if (!line[0]) {

0 commit comments

Comments
 (0)