GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: fix inconsistencies in `WeakSet` and `WeakMap` comparison details · nodejs/node@68548dc

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • assert.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/assert.md‎

Copy file name to clipboardExpand all lines: doc/api/assert.md
+8-6Lines changed: 8 additions & 6 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -904,11 +904,12 @@ weakSet2.add(obj);
904904

905905
// Comparing different instances fails, even with same contents
906906
assert.deepStrictEqual(weakSet1, weakSet2);
907-
// AssertionError: Expected inputs to be strictly deep-equal:
907+
// AssertionError: Values have same structure but are not reference-equal:
908908
// + actual - expected
909909
//
910-
// + WeakSet { <items unknown> }
911-
// - WeakSet { <items unknown> }
910+
// WeakSet {
911+
// <items unknown>
912+
// }
912913

913914
// Comparing the same instance to itself succeeds
914915
assert.deepStrictEqual(weakSet1, weakSet1);
@@ -1013,11 +1014,12 @@ weakSet2.add(obj);
10131014

10141015
// Comparing different instances fails, even with same contents
10151016
assert.deepStrictEqual(weakSet1, weakSet2);
1016-
// AssertionError: Expected inputs to be strictly deep-equal:
1017+
// AssertionError: Values have same structure but are not reference-equal:
10171018
// + actual - expected
10181019
//
1019-
// + WeakSet { <items unknown> }
1020-
// - WeakSet { <items unknown> }
1020+
// WeakSet {
1021+
// <items unknown>
1022+
// }
10211023

10221024
// Comparing the same instance to itself succeeds
10231025
assert.deepStrictEqual(weakSet1, weakSet1);

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.