Backed out changeset 446bc40870fe (bug 1346812) for eslint failure in aboutTelemetry.js. r=backout on a CLOSED TREE
authorSebastian Hengst <archaeopteryx@coole-files.de>
Mon, 13 Mar 2017 18:34:26 +0100
changeset 347356 d983cb91c5a48243adcd13187f4ae9f623f3d0d0
parent 347355 13b05e58f420c64c047ea14cc74c467c632f11a1
child 347357 1d9f1d45ac6e98efc78517ba3392ba11e4e24faf
push id31496
push usercbook@mozilla.com
push dateTue, 14 Mar 2017 13:21:57 +0000
treeherdermozilla-central@9a26ed658fdc [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbackout
bugs1346812
milestone55.0a1
backs out446bc40870fecc7ec49f1ae8b3aa6f6b2a62a56e
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Backed out changeset 446bc40870fe (bug 1346812) for eslint failure in aboutTelemetry.js. r=backout on a CLOSED TREE
toolkit/content/aboutTelemetry.js
--- a/toolkit/content/aboutTelemetry.js
+++ b/toolkit/content/aboutTelemetry.js
@@ -170,17 +170,17 @@ function removeAllChildNodes(node) {
     node.removeChild(node.lastChild);
   }
 }
 
 /**
  * Pad a number to two digits with leading "0".
  */
 function padToTwoDigits(n) {
-  return new String(n).padStart(2,"0");
+  return (n > 9) ? n : "0" + n;
 }
 
 /**
  * Return yesterdays date with the same time.
  */
 function yesterday(date) {
   let d = new Date(date);
   d.setDate(d.getDate() - 1);