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

Improve at error detection #133

Merged
merged 1 commit into from
Jan 19, 2015
Merged

Improve at error detection #133

merged 1 commit into from
Jan 19, 2015

Conversation

Raynos
Copy link
Collaborator

@Raynos Raynos commented Jan 17, 2015

  • Improve performance by only computing stack if its not ok.
  • Fix bug where stack pretty printers prepend stuff to the
    stack. i.e. we now allows ^[^\s]\s instead of ^\s*
  • Fix edgecase stack line is [Object object].method.
    We now test s[1], s[2] and s[3] to work around this.

This improves the detection of at and makes it more likely
to be correct.

This is a very important feature as it's the only thing that
makes debugging failed assertions easy.

Not fixing this causes some assertions to just not print an
at statement at all.

cc @substack

 - Improve performance by only computing stack if its not ok.
 - Fix bug where stack pretty printers prepend stuff to the
    stack. i.e. we now allows ^[^\s]*\s* instead of ^\s*
 - Fix edgecase stack line is `[Object object].method`.
    We now test s[1], s[2] and s[3] to work around this.

This improves the detection of `at` and makes it more likely
    to be correct.

This is a very important feature as it's the only thing that
    makes debugging failed assertions easy.

Not fixing this causes some assertions to just not print an
    `at` statement at all.

cc @substack
Raynos added a commit that referenced this pull request Jan 19, 2015
@Raynos Raynos merged commit ef91651 into master Jan 19, 2015
@ljharb ljharb deleted the at-detection branch March 4, 2019 00:20
This pull request was closed.
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.

1 participant