Skip to content

Webworkers panic if serialisation fails #271

Open
@gilescope

Description

@gilescope

One bad reply kills webapp

bincode::deserialize(&data).expect("can't deserialize an worker message")
will panic if a message is sent across with contents that are not deserialisable. There's some requests that bincode can't handle ( DeserializeAnyNotSupported ) - Ideally this should be a regular error rather than a panic as it should be up to the library user to decide if this situation is terminal or not (one bad message may not be the end of the world).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions