Skip to content

doc: document asserts Weak(Map|Set) behavior

Right now it is not documentated that WeakMap entries are not compared. This might result in some confusion. This adds a note about the behavior in assert.deepStrictEqual. This documentation is also references in util.isDeepStrictEqual, so we do not have to document it again for that function as the underlying algorithm is the same.

Refs: #18228 Closes: #18228

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)

doc

Merge request reports

Loading