From 31f2a4c609ea42a90ebd5963267e2dde0984af56 Mon Sep 17 00:00:00 2001 From: "Pooja D.P" Date: Mon, 24 Aug 2020 06:37:29 +0000 Subject: [PATCH 1/2] code:type var modified to type let --- test/sequential/test-repl-timeout-throw.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/sequential/test-repl-timeout-throw.js b/test/sequential/test-repl-timeout-throw.js index eecd7b39867104..164672e61a078b 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'); From 06f20cebd9c6be8085aa94dcb3795a919ba1a586 Mon Sep 17 00:00:00 2001 From: "Pooja D.P" Date: Mon, 24 Aug 2020 07:26:00 +0000 Subject: [PATCH 2/2] code:type 'var' is modified to type 'let' --- test/sequential/test-repl-timeout-throw.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/sequential/test-repl-timeout-throw.js b/test/sequential/test-repl-timeout-throw.js index 164672e61a078b..f788ab295ba9eb 100644 --- a/test/sequential/test-repl-timeout-throw.js +++ b/test/sequential/test-repl-timeout-throw.js @@ -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' +