Skip to content

frankkulak/silent-dxt-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

silent-dxt-js

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:

Screenshot of Cluttered Console

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.

About

A clone of dxt-js that doesn't throw unhandled exceptions.

Topics

Resources

License

Stars

Watchers

Forks