@@ -68,7 +68,7 @@ function testMethod(target, name, methodName = stringifyName(name)) {
6868 assert . strictEqual ( typeof value , 'function' ) ;
6969 assert . strictEqual ( value . name , methodName ) ;
7070 assert . strictEqual (
71- Object . prototype . hasOwnProperty . call ( value , 'prototype' ) ,
71+ Object . hasOwn ( value , 'prototype' ) ,
7272 false ,
7373 ) ;
7474}
@@ -83,7 +83,7 @@ function testAccessor(target, name, readonly = false) {
8383 assert . strictEqual ( typeof get , 'function' ) ;
8484 assert . strictEqual ( get . name , `get ${ methodName } ` ) ;
8585 assert . strictEqual (
86- Object . prototype . hasOwnProperty . call ( get , 'prototype' ) ,
86+ Object . hasOwn ( get , 'prototype' ) ,
8787 false ,
8888 ) ;
8989
@@ -93,7 +93,7 @@ function testAccessor(target, name, readonly = false) {
9393 assert . strictEqual ( typeof set , 'function' ) ;
9494 assert . strictEqual ( set . name , `set ${ methodName } ` ) ;
9595 assert . strictEqual (
96- Object . prototype . hasOwnProperty . call ( set , 'prototype' ) ,
96+ Object . hasOwn ( set , 'prototype' ) ,
9797 false ,
9898 ) ;
9999 }
0 commit comments