Skip to content

Commit

Permalink
Merge pull request #671 from w3c/485-config-copy
Browse files Browse the repository at this point in the history
Clone configuration should perform a deep copy
  • Loading branch information
Djuffin authored May 11, 2023
2 parents 3ec4530 + 052d98c commit 3a96dbd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -1764,7 +1764,12 @@
2. If `config[m]` is a nested dictionary, set `clone[m]` to the result of
recursively running the <a>Clone Configuration</a> algorithm with
`config[m]`.
3. Otherwise, assign the value of `config[m]` to `clone[m]`.
3. Otherwise, assign a copy of `config[m]` to `clone[m]`.

Note: This implements a "deep-copy". These configuration objects are
frequently used as the input of asynchronous operations. Copying means that
modifying the original object while the operation is in flight won't change the
operation's outcome.


Signalling Configuration Support{#config-support-info}
Expand Down

0 comments on commit 3a96dbd

Please sign in to comment.