|
|
@ -1504,6 +1504,10 @@ function MessageHandler(name, comObj) { |
|
|
|
data: result |
|
|
|
data: result |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, function (reason) { |
|
|
|
}, function (reason) { |
|
|
|
|
|
|
|
if (reason instanceof Error) { |
|
|
|
|
|
|
|
// Serialize error to avoid "DataCloneError"
|
|
|
|
|
|
|
|
reason = reason + ''; |
|
|
|
|
|
|
|
} |
|
|
|
comObj.postMessage({ |
|
|
|
comObj.postMessage({ |
|
|
|
isReply: true, |
|
|
|
isReply: true, |
|
|
|
callbackId: data.callbackId, |
|
|
|
callbackId: data.callbackId, |
|
|
|