Comparing version 0.2.5 to 0.2.6
@@ -78,5 +78,7 @@ | ||
catch(e) { | ||
var lcb = cb; | ||
if(!cb) | ||
cb = arguments.length > 0 && typeof(arguments[arguments.length-1]) === 'function' ? | ||
if(!lcb) | ||
lcb = arguments.length > 0 && typeof(arguments[arguments.length-1]) === 'function' ? | ||
arguments[arguments.length-1] : null; | ||
@@ -89,3 +91,3 @@ | ||
if(!cb) { | ||
if(!lcb) { | ||
// programmer error, OK to exit Node | ||
@@ -99,3 +101,3 @@ // would result in unclean state if silently | ||
cb(e); | ||
lcb(e); | ||
} | ||
@@ -102,0 +104,0 @@ }; |
@@ -6,3 +6,3 @@ { | ||
"keywords": [ "error", "handling", "asynchronous" ], | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"homepage": "http://github.com/ypocat/laeh2", | ||
@@ -9,0 +9,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17846
212