mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-25 16:59:01 +09:00
Silence for-each-in warnings
This commit is contained in:
parent
5d61575a9f
commit
b79a4ce07d
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue