Update assert_throws to support more errors defined in WebIDL.
Update assert_throws to support more errors defined in WebIDL.

hallvors/testharness.js,ayg/testharness.js,jyasskin/testharness.js,bboyle/testharness.js,zqzhang/testharness.js,RatneshThakur/testharness.js,jyasskin/testharness.js,hallvors/testharness.js