Merge pull request #32 from ndk/master

initialize property before setting
This commit is contained in:
Jan 2016-02-26 12:28:02 +01:00
commit 00012731e0

View file

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