jiahuili430 commented on code in PR #5364:
URL: https://github.com/apache/couchdb/pull/5364#discussion_r1895871637
##########
share/server/util.js:
##########
@@ -116,7 +116,14 @@ var Couch = {
"Expression does not eval to a function. (" + source.toString() +
")"]);
};
},
- recursivelySeal : deepFreeze
+ recursivelySeal: function (obj) {
+ seal(obj);
+ for (var propname in obj) {
Review Comment:
`propname` is the index, if the element type is `object`, this
`function(obj) { seal(obj); ... }` will be called again with the new argument
`obj = obj[propname]`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]