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 315968 2422b2dcfcb20ae38cc76fd5ce31a22baf37e7da
parent 315967 f803ec5c0469b1e9b949ac686e99bf9611b44d04
child 315969 3b4b49952871c7fb905aaed928e183a8a26191df
push id20634
push usercbook@mozilla.com
push dateFri, 30 Sep 2016 10:10:13 +0000
treeherderfx-team@afe79b010d13 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjwalden
bugs1289050
milestone52.0a1
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.