Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cd4b2aa

Browse filesBrowse files
PoojaDurgadaddaleax
authored andcommitted
test: change var to let
PR-URL: #34902 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Harshitha K P <harshitha014@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
1 parent 2529ba2 commit cd4b2aa
Copy full SHA for cd4b2aa

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎test/sequential/test-repl-timeout-throw.js‎

Copy file name to clipboardExpand all lines: test/sequential/test-repl-timeout-throw.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ child.stdin.write = function(original) {
2525
}(child.stdin.write);
2626

2727
child.stdout.once('data', function() {
28-
child.stdin.write('var throws = 0;');
28+
child.stdin.write('let throws = 0;');
2929
child.stdin.write('process.on("exit",function(){console.log(throws)});');
3030
child.stdin.write('function thrower(){console.log("THROW",throws++);XXX};');
3131
child.stdin.write('setTimeout(thrower);""\n');
@@ -40,7 +40,7 @@ child.stdout.once('data', function() {
4040
function eeTest() {
4141
child.stdin.write('setTimeout(function() {\n' +
4242
' const events = require("events");\n' +
43-
' var e = new events.EventEmitter;\n' +
43+
' let e = new events.EventEmitter;\n' +
4444
' process.nextTick(function() {\n' +
4545
' e.on("x", thrower);\n' +
4646
' setTimeout(function() {\n' +

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.