зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1567902: Don't emit an if-statement with an elided assertion in self-hosted code. r=jandem
Because that breaks profiles where extra-warnings are set. Differential Revision: https://phabricator.services.mozilla.com/D39195 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
8b24a033a8
Коммит
4d8cfce38c
|
@ -145,9 +145,14 @@ function getUnicodeExtensions(locale) {
|
|||
if (!callFunction(ts.nextToken, ts)) \
|
||||
return null;
|
||||
|
||||
#ifdef DEBUG
|
||||
#define NEXT_TOKEN_OR_ASSERT(ts) \
|
||||
if (!callFunction(ts.nextToken, ts)) \
|
||||
assert(false, "unexpected invalid subtag");
|
||||
#else
|
||||
#define NEXT_TOKEN_OR_ASSERT(ts) \
|
||||
callFunction(ts.nextToken, ts);
|
||||
#endif
|
||||
|
||||
// Assigns the current subtag part transformed to lower-case to the target.
|
||||
#define SUBTAG_VAR_OR_RETURN_NULL(ts, target) \
|
||||
|
|
Загрузка…
Ссылка в новой задаче