summaryrefslogtreecommitdiffstats
path: root/js/src/frontend
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-04-05 16:04:21 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-04-05 16:04:21 +0200
commitd960419686462067cb5745dcd1ad264abe0b1485 (patch)
treed90c1846dffc3b2b517361e3248dd1105cbef915 /js/src/frontend
parent5e8e0689c44562dcd7cb212e7c85085278426e9d (diff)
downloadUXP-d960419686462067cb5745dcd1ad264abe0b1485.tar
UXP-d960419686462067cb5745dcd1ad264abe0b1485.tar.gz
UXP-d960419686462067cb5745dcd1ad264abe0b1485.tar.lz
UXP-d960419686462067cb5745dcd1ad264abe0b1485.tar.xz
UXP-d960419686462067cb5745dcd1ad264abe0b1485.zip
Silence for-each-in warnings
Diffstat (limited to 'js/src/frontend')
-rw-r--r--js/src/frontend/Parser.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/js/src/frontend/Parser.cpp b/js/src/frontend/Parser.cpp
index f4c02720a..623379f61 100644
--- a/js/src/frontend/Parser.cpp
+++ b/js/src/frontend/Parser.cpp
@@ -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;