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 BridgeAR committed Nov 19, 2019
1 parent fa071ef commit 89bc252
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,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)
Expand Down

0 comments on commit 89bc252

Please sign in to comment.