I am using bluebirdjs for nodejs application. It throws an exception from its source code.
Line : try {throw new Error(); } catch (e) {ret.lastLineError = e;}
Path : bluebird/js/release/util.js
Line : 374
This exception seems unnecessary to me. It only throws exception. Is it rational to delete this line?
Same code also exists inside async.js at line 3.
catchblock has a side effect so you can't delete it without reasonably expecting some functionality to change.