diff --git a/src/parser.js b/src/parser.js index f7e8c08..673c62a 100644 --- a/src/parser.js +++ b/src/parser.js @@ -315,8 +315,7 @@ class Parser { * @return {ParsedResult} */ getResult() { - /* TODO: Make this function pure, return a new object instead of the reference */ - return this.parsedResult; + return Object.assign({}, this.parsedResult); } /**