Skip to content

Commit

Permalink
[Tests] handle more stack trace variation in Node v0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jun 14, 2024
1 parent 7ba18ac commit d2f0778
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ module.exports.stripFullStack = function (output) {
// Handle stack trace variation in Node v0.8
/at(:?) (Test\.)?tap\.test\.test\.skip/g,
'at$1 $2<anonymous>'
).replace(
// Handle more stack trace variation in Node v0.8
/at(:?) Test.tap.test.([^ ]+)/g,
'at$1 Test.$2'
).replace(
// Handle stack trace variation in Node v0.8
/(\[\.\.\. stack stripped \.\.\.\]\r?\n *at) <anonymous> \(([^)]+)\)/g,
Expand Down

0 comments on commit d2f0778

Please sign in to comment.