1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-25 22:15:06 +00:00

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

View file

@ -7,9 +7,9 @@ describe("getter - normal behavior", () => {
const stackFrames = [ const stackFrames = [
/^ at .*Error \(.*\/Error\.prototype\.stack\.js:\d+:\d+\)$/, /^ at .*Error \(.*\/Error\.prototype\.stack\.js:\d+:\d+\)$/,
/^ 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 .+\/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$/, /^ at .+\/Error\/Error\.prototype\.stack\.js:5:38$/,
]; ];
const values = [ const values = [