HowProgrammingWorks / NodejsStarterKit

Starter Kit for Node.js 16 or later, minimum dependencies 🚀
http://metarhia.com
MIT License
463 stars 102 forks source link

Fix potential protocol fail pattern #162

Closed tshemsedinov closed 4 years ago

tshemsedinov commented 4 years ago

If callId is not registered in this.calls, following code const [resolve, reject] = this.calls.get(callId); will fail with error: TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))