Exported variables can have breakpoint even if they do not have initializer

This commit is contained in:
Sheetal Nandi
2014-10-21 18:09:05 -07:00
parent e464a3d6fb
commit e87f18cc63
3 changed files with 78 additions and 3 deletions

View File

@@ -270,7 +270,7 @@ module ts.BreakpointResolver {
: undefined;
// Breakpoint is possible in variableDeclaration only if there is initialization
if (variableDeclaration.initializer) {
if (variableDeclaration.initializer || (variableDeclaration.flags & NodeFlags.Export)) {
if (declarations && declarations[0] === variableDeclaration) {
if (isParentVariableStatement) {
// First declaration - include var keyword