LibJS: Relax line and column number restrictions in Error stack tests

This commit is contained in:
Simon Wanner 2022-03-16 19:27:45 +01:00 committed by Linus Groh
parent aaed7b11f8
commit cc77bb5067
Notes: sideshowbarker 2024-07-17 17:17:22 +09:00

View File

@ -7,9 +7,9 @@ describe("getter - normal behavior", () => {
const stackFrames = [
/^ at .*Error \(.*\/Error\.prototype\.stack\.js:\d+:\d+\)$/,
/^ at .+\/Error\/Error\.prototype\.stack\.js:\d+:\d+$/,
/^ at test \(.+\/test-common.js:557:21\)$/,
/^ at test \(.+\/test-common.js:\d+:\d+\)$/,
/^ at .+\/Error\/Error\.prototype\.stack\.js:6:33$/,
/^ at describe \(.+\/test-common\.js:534:21\)$/,
/^ at describe \(.+\/test-common\.js:\d+:\d+\)$/,
/^ at .+\/Error\/Error\.prototype\.stack\.js:5:38$/,
];
const values = [