Silence for-each-in warnings

This commit is contained in:
wolfbeast 2018-04-05 16:04:21 +02:00 committed by Roy Tam
commit b79a4ce07d

View file

@ -9617,8 +9617,9 @@ Parser<ParseHandler>::warnOnceAboutForEach()
return true;
if (!cx->compartment()->warnedAboutForEach) {
if (!report(ParseWarning, false, null(), JSMSG_DEPRECATED_FOR_EACH))
return false;
// Disabled warning spew.
// if (!report(ParseWarning, false, null(), JSMSG_DEPRECATED_FOR_EACH))
// return false;
cx->compartment()->warnedAboutForEach = true;
}
return true;