From d860c2506c0d4ad19974382e37ae9ee2da8f73e5 Mon Sep 17 00:00:00 2001 From: Holden Rohrer Date: Mon, 20 Jan 2020 00:22:51 -0500 Subject: forgot to init var in writewrap --- utils/writewrap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/writewrap.js b/utils/writewrap.js index 96f1ad1..3ca7ede 100644 --- a/utils/writewrap.js +++ b/utils/writewrap.js @@ -5,7 +5,7 @@ class wwrap extends EventEmitter{ constructor(socket){ super(); socket.on('write', (acc) => { // Assumed that none are rejected because I've never seen it - for (w of acc) this.emit(w); + for (let w of acc) this.emit(w); }); } } -- cgit