0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test/fixtures/uncaught-exceptions
Ruben Bridgewater 72bb4445c6
assert: wrap original error in ifError
It is hard to know where ifError is actually triggered due to the
original error being thrown.
This changes it by wrapping the original error in a AssertionError.
This has the positive effect of also making clear that it is indeed
a assertion function that triggered that error.

The original stack can still be accessed by checking the `actual`
property.

PR-URL: https://github.com/nodejs/node/pull/18247
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2018-01-24 13:16:07 +01:00
..
callbackify1.js util: add callbackify 2017-06-10 22:49:28 -04:00
callbackify2.js assert: wrap original error in ifError 2018-01-24 13:16:07 +01:00
domain.js test: use const for all require() calls 2017-01-02 18:28:18 -05:00
global.js src: break on uncaught exception 2013-06-26 19:54:31 +02:00
parse-error-mod.js src: break on uncaught exception 2013-06-26 19:54:31 +02:00
parse-error.js src: break on uncaught exception 2013-06-26 19:54:31 +02:00
timeout.js src: break on uncaught exception 2013-06-26 19:54:31 +02:00