Bug 1283058 - Part 1: Remove JSREPORT_UC. r=jwalden

This commit is contained in:
Tooru Fujisawa 2016-07-13 11:32:48 +09:00
parent 1b4ff6fb6f
commit 143018969b
2 changed files with 2 additions and 6 deletions

View File

@ -649,10 +649,10 @@ TokenStream::reportCompileErrorNumberVA(uint32_t offset, unsigned flags, unsigne
}
}
err.argumentsType = (flags & JSREPORT_UC) ? ArgumentsAreUnicode : ArgumentsAreASCII;
err.argumentsType = ArgumentsAreASCII;
if (!ExpandErrorArgumentsVA(cx, GetErrorMessage, nullptr, errorNumber, &err.message,
err.argumentsType, &err.report, args))
ArgumentsAreASCII, &err.report, args))
{
return false;
}

View File

@ -1039,10 +1039,6 @@ class MOZ_STACK_CLASS TokenStream
StrictModeGetter* strictModeGetter; // used to test for strict mode
};
// Steal one JSREPORT_* bit (see jsapi.h) to tell that arguments to the error
// message have const char16_t* type, not const char*.
#define JSREPORT_UC 0x100
extern const char*
TokenKindToDesc(TokenKind tt);