diff --git a/src/rules/noStringThrowRule.ts b/src/rules/noStringThrowRule.ts index 42b6eae449f..cc1148810a7 100644 --- a/src/rules/noStringThrowRule.ts +++ b/src/rules/noStringThrowRule.ts @@ -85,7 +85,7 @@ function walk(ctx: Lint.WalkContext): void { if (numCharactersBetweenTokens === 0) { const token = node.getFirstToken() as ts.Node; if (token !== undefined && token.kind === ts.SyntaxKind.ThrowKeyword) { - fix.push(Lint.Replacement.appendText(expression.getStart(sourceFile), " ")); + fix.push(Lint.Replacement.appendText(expression.pos, " ")); } }