Skip to content
Permalink
Browse files

test: change var to let

PR-URL: #30444
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
nath1as authored and MylesBorins committed Nov 12, 2019
1 parent df1d735 commit f0b6a236ac1ce7cae547ea0e9b81c0751e311830
Showing with 5 additions and 5 deletions.
  1. +2 −2 test/message/stdin_messages.js
  2. +3 −3 test/message/stdin_messages.out
@@ -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();
@@ -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,12 +64,12 @@ ReferenceError: y is not defined
at endReadableNT (_stream_readable.js:*:*)

[stdin]:1
var ______________________________________________; throw 10
let ______________________________________________; throw 10
^
10

[stdin]:1
var ______________________________________________; throw 10
let ______________________________________________; throw 10
^
10
done

0 comments on commit f0b6a23

Please sign in to comment.
You can’t perform that action at this time.