| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
And make `assert.doesNotThrow()` handle it as well. Fixes: nodejs#18027
There was a problem hiding this comment.
LGTM
Maybe start the commit message with assert:? :)
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM but since this was never documented and never worked before, we might want to add a entry in the changed history part in the documentation.
Sorry, something went wrong.
There was a problem hiding this comment.
+1 on a changed entry.
Sorry, something went wrong.
|
|
||
| const assert = module.exports = ok; | ||
|
|
||
| const NO_EXCEPTION_SENTINEL = {}; |
There was a problem hiding this comment.
Would a symbol work here as well?
Sorry, something went wrong.
There was a problem hiding this comment.
It's merged now but for posterity: yes, but it doesn't add anything extra and it uses more memory than a plain empty object literal.
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM. I like the idea of using a symbol for the sentinel.
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM but also prefer a Symbol for the sentinel
Sorry, something went wrong.
Sorry, something went wrong.
|
Landing this. Can switch the sentinel to a symbol in a separate PR later. |
Sorry, something went wrong.
And make `assert.doesNotThrow()` handle it as well. PR-URL: #18029 Fixes: #18027 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Khaidi Chu <i@2333.moe> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
|
This is not cherry-picking cleanly to v9.x-staging. If you would like for it to land there, please submit a backport pr. Thanks! |
Sorry, something went wrong.
And make `assert.doesNotThrow()` handle it as well. PR-URL: nodejs#18029 Fixes: nodejs#18027 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Khaidi Chu <i@2333.moe> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
And make `assert.doesNotThrow()` handle it as well. Backport-PR-URL: #19230 PR-URL: #18029 Fixes: #18027 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Khaidi Chu <i@2333.moe> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
And make `assert.doesNotThrow()` handle it as well. Backport-PR-URL: #19230 PR-URL: #18029 Fixes: #18027 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Khaidi Chu <i@2333.moe> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
|
Requested backport to 8.x in #19230 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
And make assert.doesNotThrow() handle it as well.
Fixes: #18027