initialize property before setting

This commit is contained in:
Andrey Karpov 2016-02-26 11:06:40 +03:00
commit 37f3fb6e16

View file

@ -181,7 +181,9 @@ class MI2DebugSession extends DebugSession {
all.push(this.gdbDebugger.addBreakPoint({ file: path, line: brk.line, condition: brk.condition })); all.push(this.gdbDebugger.addBreakPoint({ file: path, line: brk.line, condition: brk.condition }));
}); });
Promise.all(all).then(brkpoints => { Promise.all(all).then(brkpoints => {
response.body.breakpoints = brkpoints; response.body = {
breakpoints: brkpoints
};
this.sendResponse(response); this.sendResponse(response);
}); });
}); });