mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
Bug 1283058 - Part 1: Remove JSREPORT_UC. r=jwalden
This commit is contained in:
parent
1b4ff6fb6f
commit
143018969b
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user