Merge pull request #32 from ndk/master
initialize property before setting
This commit is contained in:
commit
00012731e0
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue