Home | History | Annotate | Download | only in mjsunit

Lines Matching refs:exception

89 // Assert that the passed function or eval code throws an exception.
90 // The optional second argument is an exception constructor that the
91 // thrown exception is checked against with "instanceof".
93 // to the type property on the thrown exception.
96 // Assert that the passed function throws an exception.
97 // The exception is checked against the second argument using assertEquals.
100 // Assert that the passed function or eval code does not throw an exception.
372 throw new MjsUnitAssertionError("Did not throw exception");
383 throw new MjsUnitAssertionError("Did not throw exception");
409 fail("threw an exception: ", e.message || e, name_opt);