mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 17:31:47 +09:00
Remove telemetry leftovers from JS engine.
This commit is contained in:
parent
120aa8a81e
commit
521c918660
18 changed files with 63 additions and 466 deletions
|
|
@ -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;
|
||||
|
||||
|
|
@ -9588,16 +9585,6 @@ Parser<ParseHandler>::exprInParens(InHandling inHandling, YieldHandling yieldHan
|
|||
return expr(inHandling, yieldHandling, tripledotHandling, possibleError, PredictInvoked);
|
||||
}
|
||||
|
||||
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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue