Fix uncaught exception in node JSON-RPC tests

Events don't have an `id`, so promises[response.id] does
not exist for them.

This currently prints a DEP0168 [1] deprecation warning,
but will likely return an error in the future.

[1] https://nodejs.org/api/all.html#all_deprecations_dep0168-unhandled-exception-in-node-api-callbacks
This commit is contained in:
link2xt
2022-12-31 11:46:51 +00:00
parent bf4ad692df
commit 45462fb47e
3 changed files with 4 additions and 1 deletions

View File

@@ -17,6 +17,7 @@
### Fixes
- Do not add an error if the message is encrypted but not signed #3860
- Do not strip leading spaces from message lines #3867
- Fix uncaught exception in JSON-RPC tests #3884
## 1.104.0