Description
Libraries like prfun
(incidentally recommended in the es6-shim
README) augment the Promise prototype with additional methods. Promise.promisify
is particularly nice.
I just tried incorporating the es6-shim
into my Node 0.11.13 project to get access to the Array polyfills. Now, I'm getting Promise.promisify cannot be found
errors. A quick skim through the shim source shows that es6-shim completely overwrites the global Promise object with its own polyfill when it isn't satisfied with the present implementation.
I could probably work around this by including es6-shim
before prfun
, but the library that includes prfun
and the one that includes es6-shim
have nothing to do with each other. It'd be a shame to introduce a needless dependency to work around this.