Skip to content

Commit 8d94798

Browse files
committed
fix several 4.x issues
1 parent d79e4f4 commit 8d94798

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/step/record.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import store from '../store.js'
66
import { TIMEOUT_ORDER } from '../timeout.js'
77
import retryStep from './retry.js'
88
import { fixErrorStack } from '../utils/typescript.js'
9-
import Container from '../container.js'
109
function recordStep(step, args) {
1110
step.status = 'queued'
1211

@@ -63,8 +62,8 @@ function recordStep(step, args) {
6362
step.status = 'failed'
6463
step.endTime = +Date.now()
6564

66-
// Fix error stack to point to original .ts files
67-
const fileMapping = Container.tsFileMapping()
65+
// Fix error stack to point to original .ts files (lazy import to avoid circular dependency)
66+
const fileMapping = global.container?.tsFileMapping?.()
6867
if (fileMapping) {
6968
fixErrorStack(err, fileMapping)
7069
}

0 commit comments

Comments
 (0)