summaryrefslogtreecommitdiff
path: root/test/parallel/test-repl-setprompt.js
diff options
context:
space:
mode:
authorVse Mozhet Byt <vsemozhetbyt@gmail.com>2017-06-16 03:07:07 +0300
committerVse Mozhet Byt <vsemozhetbyt@gmail.com>2017-06-19 02:26:04 +0300
commit0fdb67be9f7b973db68d397121bf80959a60836c (patch)
treeb5b776bd781f1b7c9bddddb43ad599b37351fc51 /test/parallel/test-repl-setprompt.js
parent6b9500bfc29f9917f13f0957ab719a9c09b3ea78 (diff)
downloadandroid-node-v8-0fdb67be9f7b973db68d397121bf80959a60836c.tar.gz
android-node-v8-0fdb67be9f7b973db68d397121bf80959a60836c.tar.bz2
android-node-v8-0fdb67be9f7b973db68d397121bf80959a60836c.zip
test: use string instead of RegExp in split()
PR-URL: https://github.com/nodejs/node/pull/13710 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Diffstat (limited to 'test/parallel/test-repl-setprompt.js')
-rw-r--r--test/parallel/test-repl-setprompt.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-repl-setprompt.js b/test/parallel/test-repl-setprompt.js
index c49e08c399..d9eb85be14 100644
--- a/test/parallel/test-repl-setprompt.js
+++ b/test/parallel/test-repl-setprompt.js
@@ -44,6 +44,6 @@ child.stdin.end(`e.setPrompt("${p}");${os.EOL}`);
child.on('close', function(code, signal) {
assert.strictEqual(code, 0);
assert.ok(!signal);
- const lines = data.split(/\n/);
+ const lines = data.split('\n');
assert.strictEqual(lines.pop(), p);
});