| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
The current stack trace thrown in case `assert.throws(fn, object)` is used did not filter the stack trace. This fixes it.
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM with a small nit
Sorry, something went wrong.
| return msg; | ||
| return `${key}: expected ${inspect(expected[key])}, ` + | ||
| `not ${inspect(actual[key])}`; | ||
| function compareKey(actual, expected, key, msg) { |
There was a problem hiding this comment.
Nit: could we give this function a slightly more descriptive name since it only works for throws? Like compareExceptionKey or something?
Sorry, something went wrong.
There was a problem hiding this comment.
Done
Sorry, something went wrong.
|
I only changed the function name since the CI and it was green before, so I do not rerun it now. |
Sorry, something went wrong.
The current stack trace thrown in case `assert.throws(fn, object)` is used did not filter the stack trace. This fixes it. PR-URL: nodejs#18595 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
|
Should this be backported to v9.x-staging? If yes please follow the guide and raise a backport PR, if not let me know or add the dont-land-on label. |
Sorry, something went wrong.
The current stack trace thrown in case `assert.throws(fn, object)` is used did not filter the stack trace. This fixes it. PR-URL: nodejs#18595 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
The current stack trace thrown in case `assert.throws(fn, object)` is used did not filter the stack trace. This fixes it. PR-URL: nodejs#18595 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
|
Requested backport to 8.x in #19230 |
Sorry, something went wrong.
The current stack trace thrown in case `assert.throws(fn, object)` is used did not filter the stack trace. This fixes it. PR-URL: nodejs#18595 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
| Back | FazBrowse Home | New Git URL |
The current stack trace thrown in case assert.throws(fn, object)
is used did not filter the stack trace. This fixes it.
Checklist
Affected core subsystem(s)
assert