From b7a3afb6a111c807a3f050bd61af60d626a61b47 Mon Sep 17 00:00:00 2001 From: Michael Rochester Date: Wed, 6 Mar 2024 14:03:38 +0000 Subject: [PATCH] chore(applyPatch): correct comment --- commonjs/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commonjs/core.js b/commonjs/core.js index 16ee5bb..bd483fe 100644 --- a/commonjs/core.js +++ b/commonjs/core.js @@ -276,7 +276,7 @@ function applyPatch(document, patch, validateOperation, mutateDocument, banProto } var results = new Array(patch.length); for (var i = 0, length_1 = patch.length; i < length_1; i++) { - // we don't need to pass mutateDocument argument because if it was true, we already deep cloned the object, we'll just pass `true` + // we don't need to pass mutateDocument argument because if it was false, we already deep cloned the object, we'll just pass `true` results[i] = applyOperation(document, patch[i], validateOperation, true, banPrototypeModifications, i); document = results[i].newDocument; // in case root was replaced }