Open alvaro-cuesta opened 2 months ago
[...]/node_modules/node-hid/nodehid.js:122
this.emit("error", e);
^
TypeError: this.emit is not a function
at Immediate.<anonymous> ([...]/node_modules/node-hid/nodehid.js:122:26
Ah.. I did test this with the HIDAsync class, and didn't think I needed to test HID too. But HID is written in an older style of js and needs a this to be replaced with self
What the title says.
Reproducing code:
As soon the
throw
is reached, the process exits completely and the exception is not printed anywhere.