File tree 1 file changed +2
-7
lines changed
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,6 @@ export default (function () {
8
8
// Elements are { a: val, b: val }.
9
9
let pairs = [ ] ;
10
10
11
- const getProto = Object . getPrototypeOf || function ( obj ) {
12
- // eslint-disable-next-line no-proto
13
- return obj . __proto__ ;
14
- } ;
15
-
16
11
function useStrictEquality ( a , b ) {
17
12
// This only gets called if a and b are not strict equal, and is used to compare on
18
13
// the primitive values inside object wrappers. For example:
@@ -30,8 +25,8 @@ export default (function () {
30
25
}
31
26
32
27
function compareConstructors ( a , b ) {
33
- let protoA = getProto ( a ) ;
34
- let protoB = getProto ( b ) ;
28
+ let protoA = Object . getPrototypeOf ( a ) ;
29
+ let protoB = Object . getPrototypeOf ( b ) ;
35
30
36
31
// Comparing constructors is more strict than using `instanceof`
37
32
if ( a . constructor === b . constructor ) {
You can’t perform that action at this time.
0 commit comments