Bug 1371166 - Drive by update to update var -> let in test. r=jib
☠☠ backed out by bf4634a50775 ☠ ☠
authorBryce Van Dyk <bvandyk@mozilla.com>
Fri, 21 Jul 2017 16:00:23 +1200
changeset 419182 955998eefbe8462e3fa9964962eb8ee6b05200dd
parent 419181 736042ec645d1c4c64af0528365768e40ee24e56
child 419183 509be072f2ea0d9e6bef636e8ddcef1a15cf4a7a
push id7566
push usermtabara@mozilla.com
push dateWed, 02 Aug 2017 08:25:16 +0000
treeherdermozilla-beta@86913f512c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjib
bugs1371166
milestone56.0a1
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
Bug 1371166 - Drive by update to update var -> let in test. r=jib MozReview-Commit-ID: TAP46fR2HP
dom/media/test/test_mediarecorder_principals.html
--- a/dom/media/test/test_mediarecorder_principals.html
+++ b/dom/media/test/test_mediarecorder_principals.html
@@ -97,19 +97,19 @@ function testPrincipals(resource) {
   });
 }
 
 testPrincipals({ name:"pixel_aspect_ratio.mp4", type:"video/mp4", duration:28 })
 .catch(e => throwOutside(e))
 .then(() => SimpleTest.finish())
 .catch(e => throwOutside(e));
 
-var stop = stream => stream.getTracks().forEach(track => track.stop());
-var wait = ms => new Promise(resolve => setTimeout(resolve, ms));
-var waitUntil = f => new Promise(resolve => {
-  var ival = setInterval(() => f() && resolve(clearInterval(ival)), 100);
+let stop = stream => stream.getTracks().forEach(track => track.stop());
+let wait = ms => new Promise(resolve => setTimeout(resolve, ms));
+let waitUntil = f => new Promise(resolve => {
+  let ival = setInterval(() => f() && resolve(clearInterval(ival)), 100);
 });
 
 </script>
 </pre>
 
 </body>
 </html>