Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: change var to let #30444

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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