Skip to content

Commit 9011c87

Browse files
PoojaDurgadrichardlau
authored andcommitted
test: change var to let
PR-URL: #34902 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Harshitha K P <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent 593236a commit 9011c87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
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)