Open fixplz opened 9 years ago
Yes, we should fix this.
I almost opened a new issue, but I'm pretty sure I'm having the same issue. I had to add an if statement here since it fails the test otherwise: https://github.com/unicorn-fail/grunt-promise/blob/master/test/grunt-promise-test.js#L122-L130
Perhaps the issue title should be renamed to "Q obfuscates object inheritance" or something?
x-ref: #519
A PR is welcome.
I want to use Q with Babel, which uses polyfills including this promise implementation: https://github.com/zloirock/core-js/blob/master/modules/es6.promise.js
However Q's
then
fails the check thatp.then(...) instanceof p.constructor
.Is it congruent with Q's goals to fix this?