Skip to content

Commit 3a96dbd

Browse files
authored
Merge pull request #671 from w3c/485-config-copy
Clone configuration should perform a deep copy
2 parents 3ec4530 + 052d98c commit 3a96dbd

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". These 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)