Skip to content

lib: implement SafeThenable

Rodrigo Muino Tomonari requested to merge github/fork/aduh95/safe-thenable into master

Adds an internal API to handle promises/A+ spec in a consistent way. It uses the built-in Promise.prototype methods when an actual Promise instance is given, or lookup and cache the then method in the prototype chain otherwise.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

Merge request reports

Loading