summaryrefslogtreecommitdiffstats
path: root/js/src/frontend/Parser.cpp
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@wolfbeast.com>2019-01-31 14:49:35 +0100
committerGitHub <noreply@github.com>2019-01-31 14:49:35 +0100
commitfecab2c542df1e1aed5c9cb9ef45d113533c1dee (patch)
treedb024cf75b8c7196c918bba2c100021556604c5f /js/src/frontend/Parser.cpp
parentaa28523a553f5e2553c781081eb21715aedb7eaf (diff)
parent493c956d8de0fdb763851d9c12cfd248776b80b8 (diff)
downloadUXP-fecab2c542df1e1aed5c9cb9ef45d113533c1dee.tar
UXP-fecab2c542df1e1aed5c9cb9ef45d113533c1dee.tar.gz
UXP-fecab2c542df1e1aed5c9cb9ef45d113533c1dee.tar.lz
UXP-fecab2c542df1e1aed5c9cb9ef45d113533c1dee.tar.xz
UXP-fecab2c542df1e1aed5c9cb9ef45d113533c1dee.zip
Merge pull request #952 from adeshkp/remove-telemetry-js
Remove telemetry leftovers from JS engine.
Diffstat (limited to 'js/src/frontend/Parser.cpp')
-rw-r--r--js/src/frontend/Parser.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/js/src/frontend/Parser.cpp b/js/src/frontend/Parser.cpp
index 7bfab87a3..209265a58 100644
--- a/js/src/frontend/Parser.cpp
+++ b/js/src/frontend/Parser.cpp
@@ -3463,7 +3463,6 @@ Parser<ParseHandler>::functionFormalParametersAndBody(InHandling inHandling,
if (kind != Arrow) {
#if JS_HAS_EXPR_CLOSURES
- addTelemetry(JSCompartment::DeprecatedExpressionClosure);
if (!warnOnceAboutExprClosure())
return false;
#else
@@ -5545,7 +5544,6 @@ Parser<ParseHandler>::forStatement(YieldHandling yieldHandling)
if (matched) {
iflags = JSITER_FOREACH;
isForEach = true;
- addTelemetry(JSCompartment::DeprecatedForEach);
if (!warnOnceAboutForEach())
return null();
}
@@ -6077,7 +6075,6 @@ Parser<ParseHandler>::yieldExpression(InHandling inHandling)
}
pc->functionBox()->setGeneratorKind(LegacyGenerator);
- addTelemetry(JSCompartment::DeprecatedLegacyGenerator);
MOZ_FALLTHROUGH;
@@ -9589,16 +9586,6 @@ Parser<ParseHandler>::exprInParens(InHandling inHandling, YieldHandling yieldHan
}
template <typename ParseHandler>
-void
-Parser<ParseHandler>::addTelemetry(JSCompartment::DeprecatedLanguageExtension e)
-{
- JSContext* cx = context->maybeJSContext();
- if (!cx)
- return;
- cx->compartment()->addTelemetry(getFilename(), e);
-}
-
-template <typename ParseHandler>
bool
Parser<ParseHandler>::warnOnceAboutExprClosure()
{