File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -1579,11 +1579,22 @@ test('Own property constructor properties should check against the original prot
1579
1579
const b = { constructor : { name : 'Foo' } } ;
1580
1580
assertDeepAndStrictEqual ( a , b ) ;
1581
1581
1582
- const prototype = { } ;
1582
+ let prototype = { } ;
1583
1583
Object . setPrototypeOf ( a , prototype ) ;
1584
1584
Object . setPrototypeOf ( b , prototype ) ;
1585
1585
assertDeepAndStrictEqual ( a , b ) ;
1586
1586
1587
1587
Object . setPrototypeOf ( b , { } ) ;
1588
1588
assertNotDeepOrStrict ( a , { } ) ;
1589
+
1590
+ prototype = { __proto__ : null } ;
1591
+ Object . setPrototypeOf ( a , prototype ) ;
1592
+ Object . setPrototypeOf ( b , prototype ) ;
1593
+ assertDeepAndStrictEqual ( a , b ) ;
1594
+
1595
+ Object . setPrototypeOf ( b , { __proto__ : null } ) ;
1596
+ assert . notDeepStrictEqual ( a , b ) ;
1597
+ assert . notDeepStrictEqual ( b , a ) ;
1598
+ assert . deepEqual ( a , b ) ;
1599
+ assert . deepEqual ( b , a ) ;
1589
1600
} ) ;
You can’t perform that action at this time.
0 commit comments