We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9999e1d commit 9f16aa7Copy full SHA for 9f16aa7
source-map-support.js
@@ -377,8 +377,13 @@ function getErrorSource(error) {
377
var contents = fileContentsCache[source];
378
379
// Support files on disk
380
- if (!contents && fs.existsSync(source)) {
381
- contents = fs.readFileSync(source, 'utf8');
+ try {
+ const fs = require('fs');
382
+ if (!contents && fs.existsSync(source)) {
383
+ contents = fs.readFileSync(source, 'utf8');
384
+ }
385
+ } catch (err) {
386
+ /* NOP */
387
}
388
389
// Format the line from the original source code like node does
0 commit comments