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:
Anna Henningsen authored and Gibson Fahnestock committed 2018-01-16 22:24:19 +00:00
1 parent fdf9601a91
commit 439112a91b
1 file changed
+1 -1
+1 -1
View File
@@ -35,7 +35,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);