Skip to content

Conversation

kt3k
Copy link
Member

@kt3k kt3k commented Jun 20, 2025

This PR improves the handling of objects with faked prototypes in deepStrictEqual. This enables parallel/test-assert-checktag.js

  • Date objects are checked by core.isDate
  • In object comparison, now it checks obj.toString() output (The difference of Symbol.toStringTag is now detected).
  • Stoped using std's assertion error message for deepStrictEqual, but started using Node.js version of diff string. Now the diff expression is more compatible with Node.

ref nodejs/node#10282

towards #29801

@kt3k kt3k requested a review from bartlomieju June 20, 2025 03:07
Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kt3k kt3k merged commit c538f44 into denoland:main Jun 20, 2025
18 checks passed
@kt3k kt3k deleted the fix-ext-node-assert-deep-strict-equal branch June 20, 2025 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants