You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When applyCoverage is called, const { startCol, endCol, path, covSource } = this._maybeRemapStartColEndCol(range, isEmptyCoverage) should give me one of the covSource above.
will always get return regardless of the block value because it will always use the first object in the list. In my case, the functionName is from webpack://G.ts
Edit: See comment below
The text was updated successfully, but these errors were encountered:
Songyu-Wang
changed the title
[Question] Why are we hardcoding this.covSources[0] in _maybeRemapStartColEndCol function
Why are we hardcoding this.covSources[0] in _maybeRemapStartColEndCol function
Feb 20, 2024
Hello,
So I am trying to convert my v8 coverage to istanbul and got surprised that the translation is not working as expected.
Unfortunately I cannot share a repo for you to debug, so I have to debug this myself.
After loading the source,
v8-to-istanbul/lib/v8-to-istanbul.js
Line 47 in 4488d10
are loaded as
this.covSources
v8-to-istanbul/lib/v8-to-istanbul.js
Line 38 in 4488d10
v8-to-istanbul/lib/v8-to-istanbul.js
Line 128 in 4488d10
When
applyCoverage
is called,const { startCol, endCol, path, covSource } = this._maybeRemapStartColEndCol(range, isEmptyCoverage)
should give me one of thecovSource
above.v8-to-istanbul/lib/v8-to-istanbul.js
Line 132 in 4488d10
Based on the current implementation,
v8-to-istanbul/lib/v8-to-istanbul.js
Line 212 in 4488d10
will always get return regardless of theblock
value because it will always use the first object in the list. In my case, thefunctionName
is fromwebpack://G.ts
Edit: See comment below
v8-to-istanbul/README.md
Line 20 in 4488d10
As a result, all the data are messed up...
The text was updated successfully, but these errors were encountered: