silent-dxt-js
v0.0.3
Published
A clone of dxt-js that doesn't throw unhandled exceptions.
Downloads
7
Readme
@s4tk/dxt
This is a clone of Robin Appelman's dxt.js, except with the following line manually removed from the built squish.js
file.
process["on"]("uncaughtException",(function(ex){if(!(ex instanceof ExitStatus)){throw ex}}));
This line is problematic because it will catch all uncaught exceptions and blame them on squish.js, resulting in the entire minified squish.js library being output to the console every time your project has an unhandled exception, which looks like this:
I take no credit whatsoever for dxt.js or squish.js - this package just gets rid of a minor issue that has been bugging me for ages.