diff --git a/src/compiler/emitter.ts b/src/compiler/emitter.ts index d8d4bf73ed6..32ebeaec08f 100644 --- a/src/compiler/emitter.ts +++ b/src/compiler/emitter.ts @@ -2536,7 +2536,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) { write(";"); } - function emitWithStatement(node: WhileStatement) { + function emitWithStatement(node: WithStatement) { write("with ("); emit(node.expression); write(")");