Closed Ahathaway97 closed 6 years ago
Implementation something along the lines of, test for the keys inside the deferred object first, then access them. If the format doesnt make sense, inform the user by dumping the object and throwing E_INVALID_FORMAT
Fixed by commit c7808ddd249964f7e0220560338b34b9b2a51aa8
When a deferred module is improperly formatted (like below, taken from testing the BankAccount and BankPatron test system) it throws nondescript unhandled promise rejection errors.
Proposed solution: