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

assert: fix rejects stack trace and operator #27047

Closed
wants to merge 2 commits into from

Conversation

BridgeAR
Copy link
Member

@BridgeAR BridgeAR commented Apr 2, 2019

This makes sure the stack trace is not removed due to a wrong stack
start function being used. It also fixes the wrong operator caused
by the same reason. This only applies in case an validation object
was used to validate the rejection passed to assert.reject() as
first argument.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
This makes sure the stack trace is not removed due to a wrong stack
start function being used. It also fixes the wrong operator caused
by the same reason. This only applies in case an validation object
was used to validate the rejection passed to `assert.reject()` as
first argument.
@nodejs-github-bot nodejs-github-bot added the assert Issues and PRs related to the assert subsystem. label Apr 2, 2019
@BridgeAR
Copy link
Member Author

BridgeAR commented Apr 3, 2019

@nodejs/assert PTAL

@BridgeAR BridgeAR requested a review from targos April 3, 2019 01:44
@BridgeAR
Copy link
Member Author

BridgeAR commented Apr 5, 2019

@nodejs/util @nodejs/assert PTAL. This could use some reviews.

@BridgeAR BridgeAR requested a review from Trott April 5, 2019 22:46
@BridgeAR BridgeAR added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Apr 6, 2019
@nodejs-github-bot
Copy link
Collaborator

nodejs-github-bot commented Apr 7, 2019

test/parallel/test-assert-async.js Outdated Show resolved Hide resolved
test/parallel/test-assert-async.js Show resolved Hide resolved
BridgeAR added a commit that referenced this pull request Apr 7, 2019
This makes sure the stack trace is not removed due to a wrong stack
start function being used. It also fixes the wrong operator caused
by the same reason. This only applies in case an validation object
was used to validate the rejection passed to `assert.reject()` as
first argument.

PR-URL: #27047
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@BridgeAR
Copy link
Member Author

BridgeAR commented Apr 7, 2019

Landed in 75463a9 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assert Issues and PRs related to the assert subsystem. author ready PRs that have at least one approval, no pending requests for changes, and a CI started.
5 participants