Skip to content

Commit

Permalink
test: change var to let
Browse files Browse the repository at this point in the history
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 Dec 17, 2019
1 parent df1d735 commit f0b6a23
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions test/message/stdin_messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
6 changes: 3 additions & 3 deletions test/message/stdin_messages.out
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.