test: fix test-cli-node-options on Windows
https://github.com/nodejs/node/pull/16495 broke the Windows build, accounting for `\r\n` newlines should fix it. Ref: https://github.com/nodejs/node/pull/16495 PR-URL: https://github.com/nodejs/node/pull/16709 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
This commit is contained in:
parent
562ea8986f
commit
3d4d5e0c60
@ -34,7 +34,7 @@ if (common.hasCrypto) {
|
||||
expect('--abort_on-uncaught_exception', 'B\n');
|
||||
expect('--max-old-space-size=0', 'B\n');
|
||||
expect('--stack-trace-limit=100',
|
||||
/(\s*at f \(\[eval\]:1:\d*\)\n){100}/,
|
||||
/(\s*at f \(\[eval\]:1:\d*\)\r?\n){100}/,
|
||||
'(function f() { f(); })();',
|
||||
true);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user