Skip to content

Commit

Permalink
test: change var to let
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
PoojaDurgad authored and richardlau committed Sep 7, 2020
1 parent 593236a commit 9011c87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/sequential/test-repl-timeout-throw.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ child.stdin.write = function(original) {
}(child.stdin.write);

child.stdout.once('data', function() {
child.stdin.write('var throws = 0;');
child.stdin.write('let throws = 0;');
child.stdin.write('process.on("exit",function(){console.log(throws)});');
child.stdin.write('function thrower(){console.log("THROW",throws++);XXX};');
child.stdin.write('setTimeout(thrower);""\n');
Expand All @@ -40,7 +40,7 @@ child.stdout.once('data', function() {
function eeTest() {
child.stdin.write('setTimeout(function() {\n' +
' const events = require("events");\n' +
' var e = new events.EventEmitter;\n' +
' let e = new events.EventEmitter;\n' +
' process.nextTick(function() {\n' +
' e.on("x", thrower);\n' +
' setTimeout(function() {\n' +
Expand Down

0 comments on commit 9011c87

Please sign in to comment.