Comparing version 1.0.4 to 1.0.5
@@ -117,3 +117,8 @@ (function( | ||
context.dispatchException(arg); | ||
if (context.dispatchException(arg)) { | ||
// If the dispatched exception was caught by a catch block, | ||
// then let that catch block handle the exception normally. | ||
method = "next"; | ||
arg = void 0; | ||
} | ||
} | ||
@@ -243,3 +248,3 @@ | ||
var finallyEntries = []; | ||
var dispatched = false; | ||
var caught = false; | ||
@@ -258,7 +263,6 @@ if (this.done) { | ||
this.next = entry.catchLoc; | ||
dispatched = true; | ||
caught = true; | ||
break; | ||
} else if (entry.finallyLoc) { | ||
finallyEntries.push(entry); | ||
dispatched = true; | ||
} | ||
@@ -271,2 +275,4 @@ } | ||
} | ||
return caught; | ||
}, | ||
@@ -273,0 +279,0 @@ |
{ | ||
"name": "chanel", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Channel-based control-flow for parallel tasks with concurrency control", | ||
@@ -26,3 +26,3 @@ "repository": { | ||
"should": "^3.0.0", | ||
"regenerator": "~0.3.8", | ||
"regenerator": "~0.3.9", | ||
"gnode": "*" | ||
@@ -29,0 +29,0 @@ }, |
24749
702