Backed out changeset 622a47b9c5a8 (bug 1513737) for devtools failures on devtools/client/debugger/new/test/mochitest/browser_dbg-debugger-buttons.js. CLOSED TREE

This commit is contained in:
Csoregi Natalia 2018-12-13 23:03:40 +02:00
Родитель 7c45d38957
Коммит 0914899c29
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -47,14 +47,13 @@ export async function mapPausePoints<T>(
iteratee: PausePoint => T
) {
const results = await Promise.all(convertToList(pausePoints).map(iteratee));
let index = results.length - 1;
const newPausePoints = {};
for (const line in pausePoints) {
const linePoints = pausePoints[line];
const newLinePoints = (newPausePoints[line] = {});
for (const column in linePoints) {
newLinePoints[column] = results[index--];
newLinePoints[column] = results.shift();
}
}