Skip to content

Type and validity assertions #18

@ghost

Description

We currently have no assertions in the code of almost all projects. This often leads to longer debug times, because of messages like cannot read property length of undefined whereas with assertions we could have something like ValueX is not a Buffer.

This should at least be mandatory on public APIs, to ensure that the user is using the lib correctly. NodeJS does just that and so do many libraries.

This is a duplicate of scality/IronMan-S3#92, and many thanks to @adrienverge for his helpful input on this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions