Bug 1453385 - Fix typo to prevent passing Infinity to protocol.js. r=jryans
`Infinity` object can't be serialized via structuredclone and so actors
should not communicate such object. Fix this code which meant to prevent that.
MozReview-Commit-ID: 3TpldcSE88F
--- a/devtools/server/actors/animation.js
+++ b/devtools/server/actors/animation.js
@@ -220,17 +220,17 @@ var AnimationPlayerActor = protocol.Acto
/**
* Get the animation iteration count for this player. That is, how many times
* is the animation scheduled to run.
* @return {Number} The number of iterations, or null if the animation repeats
* infinitely.
*/
getIterationCount: function() {
let iterations = this.player.effect.getComputedTiming().iterations;
- return iterations === "Infinity" ? null : iterations;
+ return iterations === Infinity ? null : iterations;
},
/**
* Get the animation iterationStart from this player, in ratio.
* That is offset of starting position of the animation.
* @return {Number}
*/
getIterationStart: function() {