tianjunnew
tianjunnew
现在,当一个 validator 内部发生错误时,整个 validate 方法就卡住了,既不 resolve,也不 reject 作为一个 workaround,必须在每个 validator 中自己 try catch,类似 function validator() { try { /* .... */ } catch (e) { return e } } 不太友好
### Preflight Checklist - [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project. - [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to. -...
### Preflight Checklist - [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project. - [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to. -...