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:
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…
Reference in New Issue
Block a user