Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

separate exceptions in assert methods #4

Open
@tbosch

Description

@tbosch

E.g. the following code would report a type error:

  static assert(obj) {
    assert(obj).is(assert.structureOf({
      createRootView: Function
    }));
  }

The real problem was the typo: It needs to be assert.structure instead of assert.structureOf. However, the error that assert generated was misleading.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions