This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
We should be able to test for things like TypeError. I'll write a patch once bug 14589 is fixed -- I don't want to write one now because it will just conflict.
It seems like assert_throws(new TypeError(), ...) works.