Unverified Commit c7ca199c authored by Ruben Bridgewater's avatar Ruben Bridgewater Committed by George Adams
Browse files

util,assert: fix boxed primitives bug

Currently the comparison could throw an error in case a boxed
primitive has no valueOf function on one side of the assert call.

PR-URL: https://github.com/nodejs/node/pull/22243


Reviewed-By: default avatarLuigi Pinca <luigipinca@gmail.com>
Reviewed-By: default avatarTrivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: default avatarGeorge Adams <george.adams@uk.ibm.com>
parent 0aae34f5
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment