Skip to content

Commit

Permalink
Bug 1784697 - Fix undefined variable usage in test_TelemetrySession.j…
Browse files Browse the repository at this point in the history
…s. r=Dexter

Differential Revision: https://phabricator.services.mozilla.com/D154591
  • Loading branch information
Standard8 committed Aug 15, 2022
1 parent 946dd47 commit 3d97a2e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ function checkScalars(processes) {
"The keyedScalars entry must be an object."
);

let checkScalar = function(scalar) {
let checkScalar = function(scalar, name) {
// Check if the value is of a supported type.
const valueType = typeof scalar;
switch (valueType) {
Expand Down Expand Up @@ -305,7 +305,7 @@ function checkScalars(processes) {
const scalars = parentProcess.scalars;
for (let name in scalars) {
Assert.equal(typeof name, "string", "Scalar names must be strings.");
checkScalar(scalars[name]);
checkScalar(scalars[name], name);
}

// Check that we have valid keyed scalar entries.
Expand All @@ -322,7 +322,7 @@ function checkScalars(processes) {
key.length <= 70,
"Keyed scalar keys can't have more than 70 characters."
);
checkScalar(scalars[name][key]);
checkScalar(scalars[name][key], name);
}
}
}
Expand Down

0 comments on commit 3d97a2e

Please sign in to comment.