1
0
mirror of https://github.com/lancedikson/bowser synced 2024-10-27 20:34:22 +00:00

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

This commit is contained in:
Denis Demchenko 2019-01-19 15:43:29 +02:00
parent 3954c8b0df
commit cab0d0d946

View File

@ -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);
}
/**