Reimplement helpers.forEachInlineCodeSpan for ~11% time reduction measured via profile-fixture.mjs on GitHub Codespaces.

This commit is contained in:
David Anson 2022-06-19 02:14:03 +00:00 committed by GitHub
parent d177ee2fc5
commit 6e8a0737b5
3 changed files with 67 additions and 116 deletions

View file

@ -391,7 +391,7 @@ test("forEachInlineCodeSpan", (t) => {
t.is(column, expectedColumn, input);
t.is(ticks, expectedTicks, input);
});
t.is(expecteds.length, 0, "length");
t.is(expecteds.shift(), undefined, input);
}
});