Skip to content

Commit 881de0e

Browse files
nath1astargos
authored andcommitted
test: change var to let
PR-URL: #30444 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 2eec51a commit 881de0e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

test/message/stdin_messages.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ const queue =
4040
[ 'with(this){__filename}',
4141
'42',
4242
'throw new Error("hello")',
43-
'var x = 100; y = x;',
44-
'var ______________________________________________; throw 10' ];
43+
'let x = 100; y = x;',
44+
'let ______________________________________________; throw 10' ];
4545

4646
function go() {
4747
const c = queue.shift();

test/message/stdin_messages.out

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Error: hello
4848
at endReadableNT (_stream_readable.js:*:*)
4949
100
5050
[stdin]:1
51-
var x = 100; y = x;
51+
let x = 100; y = x;
5252
^
5353

5454
ReferenceError: y is not defined
@@ -64,12 +64,12 @@ ReferenceError: y is not defined
6464
at endReadableNT (_stream_readable.js:*:*)
6565

6666
[stdin]:1
67-
var ______________________________________________; throw 10
67+
let ______________________________________________; throw 10
6868
^
6969
10
7070

7171
[stdin]:1
72-
var ______________________________________________; throw 10
72+
let ______________________________________________; throw 10
7373
^
7474
10
7575
done

0 commit comments

Comments
 (0)