Title: Incorrect result from isDeepStrictEqual on two different Sets · Issue #61386 · nodejs/node · GitHub
Open Graph Title: Incorrect result from isDeepStrictEqual on two different Sets · Issue #61386 · nodejs/node
X Title: Incorrect result from isDeepStrictEqual on two different Sets · Issue #61386 · nodejs/node
Description: Version 22.21.1 Platform Microsoft Windows NT 10.0.19045.0 x64 Subsystem util What steps will reproduce the bug? The problem can be seen in a quick REPL session: Welcome to Node.js v22.21.1. Type ".help" for more information. > a = new S...
Open Graph Description: Version 22.21.1 Platform Microsoft Windows NT 10.0.19045.0 x64 Subsystem util What steps will reproduce the bug? The problem can be seen in a quick REPL session: Welcome to Node.js v22.21.1. Type "...
X Description: Version 22.21.1 Platform Microsoft Windows NT 10.0.19045.0 x64 Subsystem util What steps will reproduce the bug? The problem can be seen in a quick REPL session: Welcome to Node.js v22.21.1. Type &...
Opengraph URL: https://github.com/nodejs/node/issues/61386
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Incorrect result from isDeepStrictEqual on two different Sets","articleBody":"### Version\n\n22.21.1\n\n### Platform\n\n```text\nMicrosoft Windows NT 10.0.19045.0 x64\n```\n\n### Subsystem\n\nutil\n\n### What steps will reproduce the bug?\n\nThe problem can be seen in a quick REPL session:\n\n\u003e Welcome to Node.js v22.21.1.\n\u003e Type \".help\" for more information.\n\u003e \\\u003e a = new Set([0, new Set([1, 2, 3]), new Set([4, 5, 6])])\n\u003e Set(3) { 0, Set(3) { 1, 2, 3 }, Set(3) { 4, 5, 6 } }\n\u003e \\\u003e b = new Set([0, new Set([1, new Set([2, 3]), new Set([20, 30])]), new Set([4, new Set([5, 6]), new Set([50, 60])])])\n\u003e Set(3) {\n\u003e 0,\n\u003e Set(3) { 1, Set(2) { 2, 3 }, Set(2) { 20, 30 } },\n\u003e Set(3) { 4, Set(2) { 5, 6 }, Set(2) { 50, 60 } }\n\u003e }\n\u003e \\\u003e require('util').isDeepStrictEqual(a, b)\n\u003e true\n\n\n### How often does it reproduce? Is there a required condition?\n\nInterestingly, `require('util').isDeepStrictEqual(b, a)` returns false, as expected. Which indicates that isDeepStrictEqual is not symmetrical.\n\n### What is the expected behavior? Why is that the expected behavior?\n\nThe result should be false.\n\n### What do you see instead?\n\nI'm seeing true.\n\n### Additional information\n\n_No response_","author":{"url":"https://github.com/DoubleClickPreferred","@type":"Person","name":"DoubleClickPreferred"},"datePublished":"2026-01-14T19:24:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/61386/node/issues/61386"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c679a3e2-7bba-b56c-f3f7-06079bf52ea9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E63A:288CDA:25DA9C:3656EE:6A4D0A94 |
| html-safe-nonce | a0b74dcf49480a29cad32778f4e00943f28d2c142ce038469aabedd25b5ccef5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjNBOjI4OENEQToyNURBOUM6MzY1NkVFOjZBNEQwQTk0IiwidmlzaXRvcl9pZCI6Ijc5MDkzNDYzNzk0Nzc4Nzk0NDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 373a0f1cfd2a3e5a2fca946586217bd302c471c7026009271b0b656ac69867cf |
| hovercard-subject-tag | issue:3814552916 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/61386/issue_layout |
| twitter:image | https://opengraph.githubassets.com/49593ac210bdc08cfa68c94638bfe4613fcfb5ca59897cb3b7bf7b133adf6c95/nodejs/node/issues/61386 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/49593ac210bdc08cfa68c94638bfe4613fcfb5ca59897cb3b7bf7b133adf6c95/nodejs/node/issues/61386 |
| og:image:alt | Version 22.21.1 Platform Microsoft Windows NT 10.0.19045.0 x64 Subsystem util What steps will reproduce the bug? The problem can be seen in a quick REPL session: Welcome to Node.js v22.21.1. Type "... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | DoubleClickPreferred |
| hostname | github.com |
| expected-hostname | github.com |
| None | 31e4db13a9e20081f2fac78f441659a6576e582bbb15e153f9c7fb6473aa29f5 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | fb70bd3c4b2bec429781b65419e912c66e2d5581 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width