Skip to content

Commit a5ddc9d

Browse files
authored
Merge pull request davidmarkclements#211 from goto-bus-stop/fix/loading-stacks
Fix init stack regex setup with latest Node master
2 parents 1cab1fb + 58a6936 commit a5ddc9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ticks-to-tree.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function ticksToTree (ticks, options = {}) {
2929

3030
// Spawn a file that throws an error to get the loading stack.
3131
// Then create a regular expression that matches all those files.
32-
const stackArgs = ['--experimental-modules', '--no-warnings', join(__dirname, 'loading-stacks')]
32+
const stackArgs = ['--experimental-modules', '--no-warnings', join(__dirname, 'loading-stacks.js')]
3333
let stackChild = spawnSync(pathToNodeBinary, stackArgs)
3434
if (stackChild.stderr.toString().includes('--experimental-modules')) {
3535
// Future proof to make sure it works even if the `experimental-modules` flag is removed.

0 commit comments

Comments
 (0)