diff --git a/test/message/stdin_messages.js b/test/message/stdin_messages.js index 66e06282b3b3e2..79475bd4d217b6 100644 --- a/test/message/stdin_messages.js +++ b/test/message/stdin_messages.js @@ -40,8 +40,8 @@ const queue = [ 'with(this){__filename}', '42', 'throw new Error("hello")', - 'var x = 100; y = x;', - 'var ______________________________________________; throw 10' ]; + 'let x = 100; y = x;', + 'let ______________________________________________; throw 10' ]; function go() { const c = queue.shift(); diff --git a/test/message/stdin_messages.out b/test/message/stdin_messages.out index 58bbe110297f8c..72edb0b00b28cd 100644 --- a/test/message/stdin_messages.out +++ b/test/message/stdin_messages.out @@ -48,7 +48,7 @@ Error: hello at endReadableNT (_stream_readable.js:*:*) 100 [stdin]:1 -var x = 100; y = x; +let x = 100; y = x; ^ ReferenceError: y is not defined @@ -64,13 +64,13 @@ ReferenceError: y is not defined at endReadableNT (_stream_readable.js:*:*) [stdin]:1 -var ______________________________________________; throw 10 +let ______________________________________________; throw 10 ^ 10 (Use `node --trace-uncaught ...` to show where the exception was thrown) [stdin]:1 -var ______________________________________________; throw 10 +let ______________________________________________; throw 10 ^ 10 (Use `node --trace-uncaught ...` to show where the exception was thrown)