# Promise **Repository Path**: mircle/Promise ## Basic Information - **Project Name**: Promise - **Description**: ES6的Promise实现,兼容低版本浏览器,有更多详细信息便查调试追踪问题。 性能比ES6的Promise原生实现要快些。 - **Primary Language**: JavaScript - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 8 - **Created**: 2018-03-27 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Promise ES6的Promise实现,兼容低版本浏览器,有更多详细信息便查调试追踪问题。 性能比ES6的Promise原生实现要快些。 ES6原生Promise中有一个Bug,当Promise成功返回带有then方法的对象时,则无法正常运作: ``` new Promise(function(resolve){ resolve({ then:function(){ console.log("call then"); } }); }).then(function(result){ console.log("success"); //无法正常输出 }) ```