@@ -68,7 +68,7 @@ function testMethod(target, name, methodName = stringifyName(name)) {
68
68
assert . strictEqual ( typeof value , 'function' ) ;
69
69
assert . strictEqual ( value . name , methodName ) ;
70
70
assert . strictEqual (
71
- Object . prototype . hasOwnProperty . call ( value , 'prototype' ) ,
71
+ Object . hasOwn ( value , 'prototype' ) ,
72
72
false ,
73
73
) ;
74
74
}
@@ -83,7 +83,7 @@ function testAccessor(target, name, readonly = false) {
83
83
assert . strictEqual ( typeof get , 'function' ) ;
84
84
assert . strictEqual ( get . name , `get ${ methodName } ` ) ;
85
85
assert . strictEqual (
86
- Object . prototype . hasOwnProperty . call ( get , 'prototype' ) ,
86
+ Object . hasOwn ( get , 'prototype' ) ,
87
87
false ,
88
88
) ;
89
89
@@ -93,7 +93,7 @@ function testAccessor(target, name, readonly = false) {
93
93
assert . strictEqual ( typeof set , 'function' ) ;
94
94
assert . strictEqual ( set . name , `set ${ methodName } ` ) ;
95
95
assert . strictEqual (
96
- Object . prototype . hasOwnProperty . call ( set , 'prototype' ) ,
96
+ Object . hasOwn ( set , 'prototype' ) ,
97
97
false ,
98
98
) ;
99
99
}
0 commit comments