Skip to content

Commit 6414a57

Browse files
committed
Remove another use of this, in program.ts
1 parent a138e63 commit 6414a57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/program.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1398,8 +1398,8 @@ namespace ts {
13981398
return noDiagnosticsTypeChecker || (noDiagnosticsTypeChecker = createTypeChecker(program, /*produceDiagnostics:*/ false));
13991399
}
14001400

1401-
function emit(this: Program, sourceFile?: SourceFile, writeFileCallback?: WriteFileCallback, cancellationToken?: CancellationToken): EmitResult {
1402-
return runWithCancellationToken(() => emitWorker(this, sourceFile, writeFileCallback, cancellationToken));
1401+
function emit(sourceFile?: SourceFile, writeFileCallback?: WriteFileCallback, cancellationToken?: CancellationToken): EmitResult {
1402+
return runWithCancellationToken(() => emitWorker(program, sourceFile, writeFileCallback, cancellationToken));
14031403
}
14041404

14051405
function isEmitBlocked(emitFileName: string): boolean {

0 commit comments

Comments
 (0)