Skip to content

Commit c85a958

Browse files
gabrielcsapobrendenpalmerRobert Jackson
committed
fix: removes slow leak by emptying cache for source maps
Co-authored-by: Brenden Palmer <[email protected]> Co-authored-by: Robert Jackson <[email protected]>
1 parent ec6f0ec commit c85a958

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
'use strict';
22
/* globals sourceMapSupport */
33

4-
Error.prepareStackTrace = function prepareStackTrace(error, stack) {
5-
return error + stack.map(frame => '\n at ' + sourceMapSupport.wrapCallSite(frame)).join('');
6-
};
74
Error.stackTraceLimit = Infinity;
85

96
sourceMapSupport.install({
107
environment: 'node',
8+
emptyCacheBetweenOperations: true,
119
handleUncaughtExceptions: false,
1210
});

0 commit comments

Comments
 (0)