Title: [225333] trunk/Source/_javascript_Core
- Revision
- 225333
- Author
- msab...@apple.com
- Date
- 2017-11-30 11:12:01 -0800 (Thu, 30 Nov 2017)
Log 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):
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (225332 => 225333)
--- trunk/Source/_javascript_Core/ChangeLog 2017-11-30 18:58:06 UTC (rev 225332)
+++ trunk/Source/_javascript_Core/ChangeLog 2017-11-30 19:12:01 UTC (rev 225333)
@@ -1,3 +1,15 @@
+2017-11-30 Michael Saboff <msab...@apple.com>
+
+ 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):
+
2017-11-30 Yusuke Suzuki <utatane....@gmail.com>
REGRESSION(r225314): [Linux] More than 2000 jsc tests are failing after r225314
Modified: trunk/Source/_javascript_Core/jsc.cpp (225332 => 225333)
--- trunk/Source/_javascript_Core/jsc.cpp 2017-11-30 18:58:06 UTC (rev 225332)
+++ trunk/Source/_javascript_Core/jsc.cpp 2017-11-30 19:12:01 UTC (rev 225333)
@@ -2310,7 +2310,7 @@
shouldQuit = !line;
if (!line)
break;
- source = source + line;
+ source = source + String::fromUTF8(line);
source = source + '\n';
checkSyntax(vm, makeSource(source, sourceOrigin), error);
if (!line[0]) {
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes