From cd4b2aa8910b04629fe6b4749c06023e03ca432f Mon Sep 17 00:00:00 2001 From: "Pooja D.P" Date: Mon, 24 Aug 2020 06:37:29 +0000 Subject: [PATCH] test: change var to let MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/34902 Reviewed-By: Anna Henningsen Reviewed-By: Joyee Cheung Reviewed-By: Harshitha K P Reviewed-By: Rich Trott Reviewed-By: Tobias Nießen --- test/sequential/test-repl-timeout-throw.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/sequential/test-repl-timeout-throw.js b/test/sequential/test-repl-timeout-throw.js index eecd7b39867104..f788ab295ba9eb 100644 --- a/test/sequential/test-repl-timeout-throw.js +++ b/test/sequential/test-repl-timeout-throw.js @@ -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'); @@ -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' +