Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

process: add lineLength to source-map-cache #29863

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: Windows has additional newline marker
  • Loading branch information
bcoe committed Oct 11, 2019
commit 95441e5f7274ef6f37941174dde8e0103990f2b4
6 changes: 5 additions & 1 deletion test/parallel/test-source-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,11 @@ function nextdir() {
'istanbul-throw.js',
coverageDirectory
);
assert.deepStrictEqual(sourceMap.lineLengths, [1085, 30, 184, 648, 0]);
if (common.isWindows) {
assert.deepStrictEqual(sourceMap.lineLengths, [1087, 301, 185, 649, 0]);
} else {
assert.deepStrictEqual(sourceMap.lineLengths, [1085, 30, 184, 648, 0]);
bcoe marked this conversation as resolved.
Show resolved Hide resolved
}
}

function getSourceMapFromCache(fixtureFile, coverageDirectory) {
Expand Down