Fix an issue with returning a reference instead of a new object

pull/281/head
Denis Demchenko 5 years ago
parent 3954c8b0df
commit cab0d0d946

@ -315,8 +315,7 @@ class Parser {
* @return {ParsedResult} * @return {ParsedResult}
*/ */
getResult() { getResult() {
/* TODO: Make this function pure, return a new object instead of the reference */ return Object.assign({}, this.parsedResult);
return this.parsedResult;
} }
/** /**

Loading…
Cancel
Save