Called done { '0': undefined }
is logged if the x
method does not throw an error.
Nothing is logged if x
throws an error.
...
this.y = Q.Promise.resolve(this.y).then(this.x.bind(this)).done(function() {
console.log("Called done", arguments);
});