aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-05-11 18:53:22 -0400
committerBob Zeleznik <zzzman@gmail.com>2019-05-11 18:53:22 -0400
commitf105afd4c239940ebc41ae370b4203248cdb7b26 (patch)
tree86c01f25f924de8272fd72f89b9e02bbb8f94005 /src
parent7da76d2538ebde21d7a878b5096d5a673e5d6375 (diff)
fixed deep copy
Diffstat (limited to 'src')
-rw-r--r--src/Utils.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Utils.ts b/src/Utils.ts
index d4b6f5377..24878a368 100644
--- a/src/Utils.ts
+++ b/src/Utils.ts
@@ -128,6 +128,7 @@ export function deepCopy<K, V>(source: Map<K, V>, predicate?: Predicate<K, V>) {
if (!predicate || predicate(entry)) {
deepCopy.set(entry[0], entry[1]);
}
+ next = entries.next();
}
return deepCopy;
} \ No newline at end of file