Skip to content

Commit 76d9e77

Browse files
committed
Clone configuration should perform a deep copy
This fixes #485.
1 parent 3ec4530 commit 76d9e77

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

index.src.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1764,7 +1764,12 @@
17641764
2. If `config[m]` is a nested dictionary, set `clone[m]` to the result of
17651765
recursively running the <a>Clone Configuration</a> algorithm with
17661766
`config[m]`.
1767-
3. Otherwise, assign the value of `config[m]` to `clone[m]`.
1767+
3. Otherwise, assign a copy of `config[m]` to `clone[m]`.
1768+
1769+
Note: This implements a "deep-copy". Those configuration objects are
1770+
frequently used as the input of asynchronous operations. Copying means that
1771+
modifying the original object while the operation is in flight won't change the
1772+
operation's outcome.
17681773

17691774

17701775
Signalling Configuration Support{#config-support-info}

0 commit comments

Comments
 (0)