New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

custom build without progress throws error #535

Closed
zakness opened this Issue Mar 19, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@zakness

zakness commented Mar 19, 2015

git clone git@github.com:petkaantonov/bluebird
git checkout v2.9.14
node tools/build --feature="core"

I loaded the resulting bluebird.js and got the following error:

Uncaught TypeError: undefined is not a function
Promise.prototype._migrateCallbacks = function (follower, index) {
    var fulfill = follower._fulfillmentHandlerAt(index);
    var reject = follower._rejectionHandlerAt(index);
    var progress = follower._progressHandlerAt(index);  // ← offending line (1796)
    var promise = follower._promiseAt(index);
    var receiver = follower._receiverAt(index);
    if (promise instanceof Promise) promise._setIsMigrated();
    this._addCallbacks(fulfill, reject, progress, promise, receiver);
};

node tools/build --feature="core progress" fixes the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment