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 <[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]>
  • Loading branch information
PoojaDurgad authored and tniessen committed Sep 5, 2020
1 parent 1862305 commit 0000000
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 0000000

Please sign in to comment.