Bug 1289050 - Part 13: Use ArgumentsAreLatin1 in frontend error reporting. r=jwalden
authorTooru Fujisawa <arai_a@mac.com>
Sat, 10 Sep 2016 10:28:35 +0900
changeset 315960 2422b2dcfcb20ae38cc76fd5ce31a22baf37e7da
parent 315959 f803ec5c0469b1e9b949ac686e99bf9611b44d04
child 315961 3b4b49952871c7fb905aaed928e183a8a26191df
push id30757
push usercbook@mozilla.com
push dateFri, 30 Sep 2016 10:02:43 +0000
treeherdermozilla-central@5ffed033557e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjwalden
bugs1289050
milestone52.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1289050 - Part 13: Use ArgumentsAreLatin1 in frontend error reporting. r=jwalden
js/src/frontend/TokenStream.cpp
--- a/js/src/frontend/TokenStream.cpp
+++ b/js/src/frontend/TokenStream.cpp
@@ -636,17 +636,17 @@ TokenStream::reportCompileErrorNumberVA(
         if (!iter.done() && iter.filename()) {
             callerFilename = true;
             err.report.filename = iter.filename();
             err.report.lineno = iter.computeLine(&err.report.column);
         }
     }
 
     if (!ExpandErrorArgumentsVA(cx, GetErrorMessage, nullptr, errorNumber, &err.message,
-                                nullptr, ArgumentsAreASCII, &err.report, args))
+                                nullptr, ArgumentsAreLatin1, &err.report, args))
     {
         return false;
     }
 
     // Given a token, T, that we want to complain about: if T's (starting)
     // lineno doesn't match TokenStream's lineno, that means we've scanned past
     // the line that T starts on, which makes it hard to print some or all of
     // T's (starting) line for context.