From 37f3fb6e167605e393d7d08c77d4994356433d51 Mon Sep 17 00:00:00 2001 From: Andrey Karpov Date: Fri, 26 Feb 2016 11:06:40 +0300 Subject: [PATCH] initialize property before setting --- src/gdb.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gdb.ts b/src/gdb.ts index ccc41b6..73bea32 100644 --- a/src/gdb.ts +++ b/src/gdb.ts @@ -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); }); });