Skip to content

Commit d9b506e

Browse files
committed
prettier
1 parent e9cfc49 commit d9b506e

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

packages/scheduler/src/SchedulerProfiling.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,18 @@ import {NoPriority} from './SchedulerPriorities';
1515
let runIdCounter: number = 0;
1616
let mainThreadIdCounter: number = 0;
1717

18-
// We only use SharedArrayBuffer when cross origin isolation is enabled.
19-
// $FlowFixMe Flow doesn't know about SharedArrayBuffer
20-
const isEnabledSharedArrayBuffer = typeof SharedArrayBuffer === 'function' && typeof window !== 'undefined' && window.crossOriginIsolated === true
18+
const isEnabledSharedArrayBuffer =
19+
// $FlowFixMe Flow doesn't know about SharedArrayBuffer
20+
typeof SharedArrayBuffer === 'function' &&
21+
// We only use SharedArrayBuffer when cross origin isolation is enabled.
22+
typeof window !== 'undefined' &&
23+
window.crossOriginIsolated === true;
2124

2225
const profilingStateSize = 4;
2326
export const sharedProfilingBuffer = enableProfiling
24-
?
25-
isEnabledSharedArrayBuffer
27+
? isEnabledSharedArrayBuffer
2628
? new SharedArrayBuffer(profilingStateSize * Int32Array.BYTES_PER_ELEMENT)
27-
:
28-
typeof ArrayBuffer === 'function'
29+
: typeof ArrayBuffer === 'function'
2930
? new ArrayBuffer(profilingStateSize * Int32Array.BYTES_PER_ELEMENT)
3031
: null // Don't crash the init path on IE9
3132
: null;

0 commit comments

Comments
 (0)