Perhaps this page is due for a deletion?

The QUnit source code running behind the cookbook page is significantly out of date, and, more to the point of this section, contains this `raises` assertion which no longer even exists (replaced by `throws`).

At this point, continuing to maintain the cookbook section will be less effective than simply pointing to the API documentation...