Document that expected must be a RegExp

You get silent false positives if you use e.g. TypeError instead of /TypeError/.