Closed valorant-dhruv closed 1 year ago
This Pull Request focuses on enhancing the robustness of the repository by dealing with potential uncertainties or irregularities that could arise during the execution of specific functions.
Improved Handling of Undefined Values in clock.js
The functions responsible for encoding and decoding event blocks in clock.js
have been updated to manage situations where the input values are undefined.
Enhanced Error Management in database.js
Assertiveness of the putToProllyTree
function is improved by adding the capability to handle input values that are not defined.
Better Robustness in prolly.js
Several functions in prolly.js
including getBlockFn
, bulkFromEvents
, prollyRootFromAncestor
and doProllyBulk
are now equipped to deal with undefined input values. This change assures more stable operations even in conditions where data might be incomplete or improperly formed.
Undefined Values Guard in base.js
Defensive coding is added in a situation where variable decoded
might be undefined.
Test Suit: Debugging Improvment in fireproof.test.js
The code now properly manages scenarios where database
object is undefined. This leads to more resilient testing and reduced false negatives.
Although the test is still failing, i have added some commented code thinking it might resolve the issue