Skip to content

frankkulak/silent-dxt-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6bbc5af · Jun 16, 2023

History

6 Commits
Sep 17, 2022
Sep 17, 2022
Jun 16, 2023
Sep 17, 2022
Sep 17, 2022
Sep 17, 2022

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