test: changed var to const in test

Changed outdated var to const in the test file
repl-unexpected-token-recoverable.js

PR-URL: https://github.com/nodejs/node/pull/30434
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
Kerry Mahne
2019-11-12 16:05:11 +00:00
committed by Gireesh Punathil
parent 366ec2f1f9
commit dcbb2ecb49

View File

@@ -10,7 +10,7 @@ const spawn = require('child_process').spawn;
const args = [ '-i' ];
const child = spawn(process.execPath, args);
const input = 'var foo = "bar\\\nbaz"';
const input = 'const foo = "bar\\\nbaz"';
// Match '...' as well since it marks a multi-line statement
const expectOut = /> \.\.\. undefined\n/;