UglifyJS mangles the error names causing error handling not to work properly
Bug #1745944 reported by
Jiri Tomasek
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
High
|
Jiri Tomasek |
Bug Description
Code mangling and minification provided by UglifyJS webpack plugin mangles the error names provided by Error.prototype
Possible solutions:
Update to latest UglifyJS webpack plugin and use keep_fnames mangle option to preserve error name. Better alternative is to stick with default UglifyJS behavior and explicitly set error name in error constructor. This ensures that the error name won't get mangled.
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/538844
Review: https:/