assert icon indicating copy to clipboard operation
assert copied to clipboard

separate exceptions in assert methods

Open tbosch opened this issue 11 years ago • 0 comments

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.

tbosch avatar Apr 16 '14 22:04 tbosch