Skip to content

fix(reporter): format stack with 1-based column#3325

Merged
johnjbarton merged 1 commit into
karma-runner:masterfrom
segrey:fix-3324
Jun 17, 2019
Merged

fix(reporter): format stack with 1-based column#3325
johnjbarton merged 1 commit into
karma-runner:masterfrom
segrey:fix-3324

Conversation

@segrey

@segrey segrey commented Jun 5, 2019

Copy link
Copy Markdown
Contributor

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

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
@segrey

segrey commented Jun 5, 2019

Copy link
Copy Markdown
Contributor Author

The Travis CI build was failed for "Node.js 8" configuration in the same way as it fails for karma master (https://travis-ci.org/karma-runner/karma). So, seems this failed check can be skipped.

@segrey

segrey commented Jun 14, 2019

Copy link
Copy Markdown
Contributor Author

@johnjbarton Could you please take a look at this PR? It helps IDE to annotate correctly method call where assertion is failed.
(The failed Travis build is not caused by this change.)

@johnjbarton
johnjbarton merged commit 182c04d into karma-runner:master Jun 17, 2019
@segrey
segrey deleted the fix-3324 branch June 18, 2019 20:45
@segrey

segrey commented Jun 18, 2019

Copy link
Copy Markdown
Contributor Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect column in stack trace with original file

2 participants