Uncaught (in promise) DOMException: Failed to execute 'postMessage' on 'DedicatedWorkerGlobalScope': function(errno){this.errno=errno} could not be cloned.
at self.onmessage
To Reproduce
Steps to reproduce the behavior:
try {
await ffmpeg.exec(['-i', 'invalid_path.avi', 'output.mp4']
} catch(e) {
// can not catch error
}
Expected behavior
get exec error
Desktop (please complete the following information):
OS: windows
Browser chrome
Version 115.0.5790.111
Additional context
in source code worker.ts 182L,
Error object has an property "setErrno", which is a function. Function objects cannot be duplicated by the structured clone algorithm
self.postMessage({ id, type: FFMessageType.ERROR, data: e as Error });
Describe the bug
To Reproduce Steps to reproduce the behavior:
Expected behavior get exec error
Desktop (please complete the following information):
Additional context in source code worker.ts 182L, Error object has an property "setErrno", which is a function. Function objects cannot be duplicated by the structured clone algorithm