diff options
Diffstat (limited to 'ext/mixed/js/comm.js')
-rw-r--r-- | ext/mixed/js/comm.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/mixed/js/comm.js b/ext/mixed/js/comm.js index b1958679..4a6786c3 100644 --- a/ext/mixed/js/comm.js +++ b/ext/mixed/js/comm.js @@ -150,7 +150,7 @@ class CrossFrameAPIPort extends EventDispatcher { const error = data.error; if (typeof error !== 'undefined') { - invocation.reject(jsonToError(error)); + invocation.reject(deserializeError(error)); } else { invocation.resolve(data.result); } @@ -200,7 +200,7 @@ class CrossFrameAPIPort extends EventDispatcher { } _sendError(id, error) { - this._sendResponse({type: 'result', id, data: {error: errorToJson(error)}}); + this._sendResponse({type: 'result', id, data: {error: serializeError(error)}}); } } |