From 76d9e77bf41eb407c722f903984d9f41fce88922 Mon Sep 17 00:00:00 2001 From: Paul Adenot Date: Wed, 10 May 2023 15:02:53 +0200 Subject: [PATCH 1/2] Clone configuration should perform a deep copy This fixes #485. --- index.src.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/index.src.html b/index.src.html index d5ca1066..9480f46a 100644 --- a/index.src.html +++ b/index.src.html @@ -1764,7 +1764,12 @@ 2. If `config[m]` is a nested dictionary, set `clone[m]` to the result of recursively running the Clone Configuration 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". Those 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} From 052d98cc9c2c5b8ca78e2c0938b6dc955c061352 Mon Sep 17 00:00:00 2001 From: Paul Adenot Date: Wed, 10 May 2023 19:13:17 +0200 Subject: [PATCH 2/2] Address review comment. --- index.src.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.src.html b/index.src.html index 9480f46a..cfd9350e 100644 --- a/index.src.html +++ b/index.src.html @@ -1766,7 +1766,7 @@ `config[m]`. 3. Otherwise, assign a copy of `config[m]` to `clone[m]`. -Note: This implements a "deep-copy". Those configuration objects are +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.