mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
correctly handle JSON-RPC requests with ID=0
This commit is contained in:
parent
75dcefba31
commit
4a15205d75
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ class JSONRPC {
|
|||
_handleRequest (json) {
|
||||
const {method, params, id} = json;
|
||||
const rawResult = this.didReceiveCall(method, params);
|
||||
if (id) {
|
||||
if (id !== null && typeof id !== 'undefined') {
|
||||
Promise.resolve(rawResult).then(
|
||||
result => {
|
||||
this._sendResponse(id, result);
|
||||
|
|
Loading…
Reference in a new issue