Skip to content
This repository was archived by the owner on Oct 15, 2020. It is now read-only.

Commit 2d7142c

Browse files
committed
test: make events-uncaught-exception-stack engine-agnostic
1 parent 3ae2dfc commit 2d7142c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-events-uncaught-exception-stack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ process.on('uncaughtException', common.mustCall((err) => {
99
const lines = err.stack.split('\n');
1010
assert.strictEqual(lines[0], 'Error');
1111
lines.slice(1).forEach((line) => {
12-
assert(/^ at/.test(line), `${line} has an unexpected format`);
12+
assert(/^\s*at/.test(line), `${line} has an unexpected format`);
1313
});
1414
}));
1515

0 commit comments

Comments
 (0)