We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de7fbc0 commit 59fca7fCopy full SHA for 59fca7f
src/compiler/performance.ts
@@ -10,7 +10,8 @@ namespace ts {
10
namespace ts.performance {
11
declare const onProfilerEvent: { (markName: string): void; profiler: boolean; };
12
13
- const profilerEvent: (markName: string) => void = typeof onProfilerEvent === "function" && onProfilerEvent.profiler === true ? onProfilerEvent : noop;
+ // NOTE: cannot use ts.noop as core.ts loads after this
14
+ const profilerEvent: (markName: string) => void = typeof onProfilerEvent === "function" && onProfilerEvent.profiler === true ? onProfilerEvent : () => { /*empty*/ };
15
16
let enabled = false;
17
let profilerStart = 0;
0 commit comments