Skip to content

Commit 1b5b1cc

Browse files
nikita-malyschkinMylesBorins
authored andcommitted
test: add test for strictDeepEqual
PR-URL: #24197 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Daijiro Wachi <[email protected]>
1 parent cd2dedf commit 1b5b1cc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎test/parallel/test-util-isDeepStrictEqual.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,10 +459,13 @@ utilIsDeepStrict(-0, -0);
459459
constobj1={[symbol1]: 1};
460460
constobj2={[symbol1]: 1};
461461
constobj3={[Symbol()]: 1};
462+
constobj4={};
462463
// Add a non enumerable symbol as well. It is going to be ignored!
463464
Object.defineProperty(obj2,Symbol(),{value: 1});
465+
Object.defineProperty(obj4,symbol1,{value: 1});
464466
notUtilIsDeepStrict(obj1,obj3);
465467
utilIsDeepStrict(obj1,obj2);
468+
notUtilIsDeepStrict(obj1,obj4);
466469
// TypedArrays have a fast path. Test for this as well.
467470
consta=newUint8Array(4);
468471
constb=newUint8Array(4);

0 commit comments

Comments
(0)