X-Git-Url: https://git.josue.xyz/?p=dotfiles%2F.git;a=blobdiff_plain;f=.config%2Fcoc%2Fextensions%2Fnode_modules%2Fcoc-prettier%2Fnode_modules%2Flodash%2F_equalObjects.js;h=cdaacd2dfd88958c8dfe6a3dbec0773b15bf4c4b;hp=17421f374c9986663f09971b76f5c2ce0a83e34b;hb=4d07c77cf4d78cab8639e13ddc3c22495e585b0b;hpb=b3950616b54221c40a7dab9099bda675007e5b6e diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/lodash/_equalObjects.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/lodash/_equalObjects.js index 17421f37..cdaacd2d 100644 --- a/.config/coc/extensions/node_modules/coc-prettier/node_modules/lodash/_equalObjects.js +++ b/.config/coc/extensions/node_modules/coc-prettier/node_modules/lodash/_equalObjects.js @@ -39,10 +39,11 @@ function equalObjects(object, other, bitmask, customizer, equalFunc, stack) { return false; } } - // Assume cyclic values are equal. - var stacked = stack.get(object); - if (stacked && stack.get(other)) { - return stacked == other; + // Check that cyclic values are equal. + var objStacked = stack.get(object); + var othStacked = stack.get(other); + if (objStacked && othStacked) { + return objStacked == other && othStacked == object; } var result = true; stack.set(object, other);