File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
packages/react-devtools-shared/src/backend Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ import {format} from './utils';
85
85
import { enableProfilerChangedHookIndices } from 'react-devtools-feature-flags' ;
86
86
import is from 'shared/objectIs' ;
87
87
import isArray from 'shared/isArray' ;
88
+ import hasOwnProperty from 'shared/hasOwnProperty' ;
88
89
89
90
import type { Fiber } from 'react-reconciler/src/ReactInternalTypes' ;
90
91
import type {
@@ -1380,13 +1381,13 @@ export function attach(
1380
1381
return false ;
1381
1382
}
1382
1383
const { deps } = memoizedState;
1383
- const hasOwnProperty = Object.prototype. hasOwnProperty.bind(memoizedState);
1384
+ const boundHasOwnProperty = hasOwnProperty.bind(memoizedState);
1384
1385
return (
1385
- hasOwnProperty ('create') &&
1386
- hasOwnProperty ( 'destroy ') &&
1387
- hasOwnProperty ( 'deps ') &&
1388
- hasOwnProperty ( 'next ') &&
1389
- hasOwnProperty ( 'tag ') &&
1386
+ boundHasOwnProperty ('create') &&
1387
+ boundHasOwnProperty ( 'destroy ') &&
1388
+ boundHasOwnProperty ( 'deps ') &&
1389
+ boundHasOwnProperty ( 'next ') &&
1390
+ boundHasOwnProperty ( 'tag ') &&
1390
1391
( deps === null || isArray ( deps ) )
1391
1392
) ;
1392
1393
}
You can’t perform that action at this time.
0 commit comments