Bug 1371166 - Drive by update to update var -> let in test. r=jib, a=test-only
authorBryce Van Dyk <bvandyk@mozilla.com>
Fri, 21 Jul 2017 16:00:23 +1200
changeset 423614 b8a21f125b3b89176371feef8f25f1d761a9db0a
parent 423613 cd73acc0f943987c079c3ebb40a87886734f5fc8
child 423615 f1eb755a3736142b4236be5686798db86e344836
push id1517
push userjlorenzo@mozilla.com
push dateThu, 14 Sep 2017 16:50:54 +0000
treeherdermozilla-release@3b41fd564418 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjib, test-only
bugs1371166
milestone56.0
Bug 1371166 - Drive by update to update var -> let in test. r=jib, a=test-only 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>