个人学习 Promis 源码实现

  • 基本状态改变
  • resolve/reject结果
  • then 链式调用
  • 静态方法实现
  • 通过 promises-aplus-tests 所有测试 npm run test
  • 通过 promises-aplus-tests 的所有测试用例