diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-04-05 16:04:21 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-04-05 16:04:21 +0200 |
commit | c2cb5e2195a8553cddec26819522a57671312071 (patch) | |
tree | d90c1846dffc3b2b517361e3248dd1105cbef915 | |
parent | bee531a2e65a18aae49efa8031dc08c50063153a (diff) | |
download | uxp-c2cb5e2195a8553cddec26819522a57671312071.tar.gz |
Silence for-each-in warnings
-rw-r--r-- | js/src/frontend/Parser.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/js/src/frontend/Parser.cpp b/js/src/frontend/Parser.cpp index f4c02720a3..623379f61f 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; |