This repository has been archived by the owner on Oct 2, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #226 - fix for old runtimes that don't support setAsyncCallStackD…
…epth
- Loading branch information
9881b3c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried and this is not worked
setAsyncCallStackDepth
return Promise with 'async' call inside and hence in case if method doesn't exist it doesn't throw an exception but returns a rejected promise instead.https://github.com/nojvek/noice-json-rpc/blob/master/lib/noice-json-rpc.js#L101
I guess this is better:
9881b3c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, I meant
return await...
9881b3c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pushed a new commit, you can try the new one.