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}
*/
getResult() {
/* TODO: Make this function pure, return a new object instead of the reference */
return this.parsedResult;
return Object.assign({}, this.parsedResult);
}
/**

Loading…
Cancel
Save