From 08dfb4c50c1a3d3e6b54d0717d200e752c6691e0 Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Wed, 21 Sep 2022 12:24:55 -0700 Subject: [PATCH] Revert "Once again, set snc to fixed value to see perf floor of function" This reverts commit b632e6a8a1b325fa56c157600eb048e6b682536f. --- src/compiler/checker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 4550565cef432..3efcc8d526f27 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -359,7 +359,7 @@ namespace ts { const moduleKind = getEmitModuleKind(compilerOptions); const useDefineForClassFields = getUseDefineForClassFields(compilerOptions); const allowSyntheticDefaultImports = getAllowSyntheticDefaultImports(compilerOptions); - const strictNullChecks = (_context: Node | undefined) => true; //getStrictOptionValue(context && getSourceFileOfNode(context), compilerOptions, "strictNullChecks"); + const strictNullChecks = (context: Node | undefined) => getStrictOptionValue(context && getSourceFileOfNode(context), compilerOptions, "strictNullChecks"); const strictFunctionTypes = (file: SourceFile | undefined) => getStrictOptionValue(file, compilerOptions, "strictFunctionTypes"); const strictBindCallApply = (file: SourceFile | undefined) => getStrictOptionValue(file, compilerOptions, "strictBindCallApply"); const strictPropertyInitialization = (file: SourceFile) => getStrictOptionValue(file, compilerOptions, "strictPropertyInitialization");