From e19c60c1b510edd8541b86a0a4ce3b723b266f3a Mon Sep 17 00:00:00 2001 From: Zhenwei Jin <109658203+kylo5aby@users.noreply.github.com> Date: Mon, 13 May 2024 03:46:13 +0800 Subject: [PATCH] assert: add deep equal check for more Error type PR-URL: https://github.com/nodejs/node/pull/51805 Fixes: https://github.com/nodejs/node/issues/51793 Reviewed-By: Chengzhong Wu --- doc/api/assert.md | 15 +++++++++++---- lib/internal/util/comparisons.js | 20 +++++++++++++++++--- test/parallel/test-assert-deep.js | 23 +++++++++++++++++++++++ 3 files changed, 51 insertions(+), 7 deletions(-) diff --git a/doc/api/assert.md b/doc/api/assert.md index 92121c42f20a46..ca1fc7ca9772a4 100644 --- a/doc/api/assert.md +++ b/doc/api/assert.md @@ -555,6 +555,9 @@ An alias of [`assert.ok()`][].