From 6e30216f4e953dcc73c5d5893d4a4ced7f05dc80 Mon Sep 17 00:00:00 2001 From: nathias Date: Tue, 12 Nov 2019 17:33:42 +0100 Subject: [PATCH] test: change var to let PR-URL: https://github.com/nodejs/node/pull/30444 Reviewed-By: James M Snell Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil Reviewed-By: Ruben Bridgewater --- test/message/stdin_messages.js | 4 ++-- test/message/stdin_messages.out | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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)