From e2702a645855b6166df2d514f1b7b9ca53ce372f Mon Sep 17 00:00:00 2001 From: Andreas Pehrson Date: Fri, 28 Apr 2017 11:22:18 +0200 Subject: [PATCH] Bug 1093835 - Turn unnecessary array.map to array.forEach in pc.js. r=jib MozReview-Commit-ID: 1oqXtncwUQ1 --HG-- extra : rebase_source : 2aad2e3c19c664ba61a26beb43ef75ee5f05bd03 --- dom/media/tests/mochitest/pc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dom/media/tests/mochitest/pc.js b/dom/media/tests/mochitest/pc.js index d473c91ec8ee..cb1e756717e4 100644 --- a/dom/media/tests/mochitest/pc.js +++ b/dom/media/tests/mochitest/pc.js @@ -1004,13 +1004,13 @@ PeerConnectionWrapper.prototype = { return Promise.all(constraintsList.map(constraints => { return getUserMedia(constraints).then(stream => { if (constraints.audio) { - stream.getAudioTracks().map(track => { + stream.getAudioTracks().forEach(track => { info(this + " gUM local stream " + stream.id + " with audio track " + track.id); }); } if (constraints.video) { - stream.getVideoTracks().map(track => { + stream.getVideoTracks().forEach(track => { info(this + " gUM local stream " + stream.id + " with video track " + track.id); });