This doesn't much come up up, but see e.g. language/global-code/script-decl-func-err-non-extensible.jsSrc: on Chrome, this gives 'Unexpected error: TypeError: Can't add property test262, object is not extensible' - which is an error from evalScript, which assertThrows expects to be able to catch.