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
at UserContext.<anonymous> (webpack:///test/specs/utils.spec.js:3:4 <- index.js:72:5)
The location in the original file (utils.spec.js:3:4) points to the correct 1-based line, but has wrong 1-based column (in fact it's 0-based column). Since lines and columns in stack traces are expected to be both 1-based, it should be utils.spec.js:3:5.
Please note that the location in the transpiled file (index.js:72:5) has correct 1-based column.
The text was updated successfully, but these errors were encountered:
Columns in original stack are 1-based, but
SourceMapConsumer.prototype.originalPositionFor(generatedPosition)
accepts 0-based column and returns 0-based column too.
This change converts columns from 1-based to 0-based forth and back.
Closes#3324
Expected behaviour
Stack trace contains locations with 1-based line and 1-based column.
Actual behaviour
Stack trace contains locations with 1-based line and 0-based column.
Environment Details
karma --version
): 4.1.0karma.config.js
file: see the projectSteps to reproduce the behaviour
npm test
The location in the original file (
utils.spec.js:3:4
) points to the correct 1-based line, but has wrong 1-based column (in fact it's 0-based column). Since lines and columns in stack traces are expected to be both 1-based, it should beutils.spec.js:3:5
.Please note that the location in the transpiled file (
index.js:72:5
) has correct 1-based column.The text was updated successfully, but these errors were encountered: