Skip to content

Commit

Permalink
allow require('util') to throw
Browse files Browse the repository at this point in the history
  • Loading branch information
easrng authored Feb 27, 2025
1 parent 21bdaa0 commit 3027c78
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion util.inspect.js
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
module.exports = require('util').inspect;
try {
module.exports = require('util').inspect;
} catch (_) {
module.exports = {};
}

0 comments on commit 3027c78

Please sign in to comment.