зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
7c45d38957
Коммит
0914899c29
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче