We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents de7fbc0 + 59fca7f commit 137950bCopy full SHA for 137950b
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