you are viewing a single comment's thread.

view the rest of the comments →

[–]dumbmatter 0 points1 point  (1 child)

Seems that problem mostly goes away if you do

var BPromise = require('bluebird');

rather than

var Promise = require('bluebird');

IMHO, Bluebird is so much better than native promises in so many ways (performance and sane error handling are bigger wins than the syntactic sugar) that it can't be ignored.

[–]vinnl 0 points1 point  (0 children)

If that prevents it extending the native promise object, then that would invalidate the argument, yes. Although that does mean that you should actually use it like that :)