throws() and doesNotThrow() methods in the assertions module do not correctly handle native errors. r=dhunt