padolsey/operative

Try/catch within a function seems to break operative?

Closed this issue · 3 comments

Not sure why this would be the case can anyone shine some light on this? Thanks in advance.

Throwing/Trying/Catching seems to work intuitively within an operative, see: http://jsbin.com/yayayanuho/edit?html,js,output

Could you paste an example of it breaking?

Sure apologies if this is some silly mistake

 "dimension.group.reduceSum": function(index, accessor) {
    var promise = this.deferred();
    try
    {
      this.dimensionGroups[index].reduceSum(this.unpack(accessor));
      promise.fulfill();
    } catch (e){
      promise.reject();
    }
}

Hey guys sorry, it was a mistake on my part compounded together with a different issue. Thanks! Great library btw