| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 593236a commit 9011c87
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -25,7 +25,7 @@ child.stdin.write = function(original) { | |||
| 25 | 25 | }(child.stdin.write); | |
| 26 | 26 | ||
| 27 | 27 | child.stdout.once('data', function() { | |
| 28 | - child.stdin.write('var throws = 0;'); | ||
| 28 | + child.stdin.write('let throws = 0;'); | ||
| 29 | 29 | child.stdin.write('process.on("exit",function(){console.log(throws)});'); | |
| 30 | 30 | child.stdin.write('function thrower(){console.log("THROW",throws++);XXX};'); | |
| 31 | 31 | child.stdin.write('setTimeout(thrower);""\n'); | |
@@ -40,7 +40,7 @@ child.stdout.once('data', function() { | |||
| 40 | 40 | function eeTest() { | |
| 41 | 41 | child.stdin.write('setTimeout(function() {\n' + | |
| 42 | 42 | ' const events = require("events");\n' + | |
| 43 | - ' var e = new events.EventEmitter;\n' + | ||
| 43 | + ' let e = new events.EventEmitter;\n' + | ||
| 44 | 44 | ' process.nextTick(function() {\n' + | |
| 45 | 45 | ' e.on("x", thrower);\n' + | |
| 46 | 46 | ' setTimeout(function() {\n' + | |
| Back | FazBrowse Home | New Git URL |
0 commit comments