Skip to content

Thread.errors not behaving as expected #328

Open
@ngault

Description

@ngault

Uncaught errors in a worker are not communicated to the Thread.errors observable on the main thread. Here is an existing threads.js example on Codesandbox, modified to throw an error in a worker and subscribe to errors on the main thread:

https://codesandbox.io/s/threadsjs-particles-forked-tgqpv?file=/src/worker.js

see line 16 of worker.js for the thrown error
see line 57 of index.js for the Thread.errors observable, which isn't receiving events.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions