diff --git a/doc/api/util.md b/doc/api/util.md index f9bfed5b5998..52e2c06b09ff 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -1691,6 +1691,17 @@ console.log(util.isDeepStrictEqual(foo, bar, true)); See [`assert.deepStrictEqual()`][] for more information about deep strict equality. +## `util.markPromiseAsHandled(promise)` + + + +* `promise` {promise} The promise to mark as handled + +Marks a promise as handled so that unhandled rejections are ignored and are not +reported to the `'unhandledrejection'` event. + ## Class: `util.MIMEType`