File tree 1 file changed +7
-2
lines changed 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -408,12 +408,16 @@ function wrapCallSite(frame, state) {
408
408
return frame ;
409
409
}
410
410
411
+ function emptyCache ( ) {
412
+ fileContentsCache = { } ;
413
+ sourceMapCache = { } ;
414
+ }
415
+
411
416
// This function is part of the V8 stack trace API, for more info see:
412
417
// https://v8.dev/docs/stack-trace-api
413
418
function prepareStackTrace ( error , stack ) {
414
419
if ( emptyCacheBetweenOperations ) {
415
- fileContentsCache = { } ;
416
- sourceMapCache = { } ;
420
+ emptyCache ( ) ;
417
421
}
418
422
419
423
var name = error . name || 'Error' ;
@@ -503,6 +507,7 @@ exports.wrapCallSite = wrapCallSite;
503
507
exports . getErrorSource = getErrorSource ;
504
508
exports . mapSourcePosition = mapSourcePosition ;
505
509
exports . retrieveSourceMap = retrieveSourceMap ;
510
+ exports . emptyCache = emptyCache ;
506
511
507
512
exports . install = function ( options ) {
508
513
options = options || { } ;
You can’t perform that action at this time.
0 commit comments