test262/test/language/statements
Mike Pennisi 10e0d977ec Prefer explicit error checking where possible
The `negative` frontmatter tag expresses an expectation for the behavior
of the test file as a whole. The `assert.throws` helper function offers
more fine-grained control over expectations because it may be applied to
specific statements and expressions. This makes it preferable in cases
where it may be used (i.e. when the test body does not describe a syntax
error or early error).

Re-implement assertions for errors to use the `assert.throws` helper
function wherever possible.
2015-07-10 14:12:57 -04:00
..
block Remove $PRINT helper function 2015-06-16 13:43:23 -04:00
break Strict eval variable declarations are lexically scoped, assign expected result value to a previously declared global (issue #35) 2015-04-08 15:54:58 -07:00
class Prefer explicit error checking where possible 2015-07-10 14:12:57 -04:00
const Prefer explicit error checking where possible 2015-07-10 14:12:57 -04:00
continue Import tests from Google V8 (Block Scope Additions) 2015-04-09 14:21:06 -04:00
do-while Add 'var' declarations for strict mode 2014-12-10 16:37:05 -08:00
empty Reorganize ./test 2014-12-07 15:33:09 -08:00
expression Strict eval variable declarations are lexically scoped, assign expected result value to a previously declared global (issue #35) 2015-04-08 15:54:58 -07:00
for Import tests from Google V8 (Block Scope Additions) 2015-04-09 14:21:06 -04:00
for-in Prefer explicit error checking where possible 2015-07-10 14:12:57 -04:00
for-of Prefer explicit error checking where possible 2015-07-10 14:12:57 -04:00
function Prefer explicit error checking where possible 2015-07-10 14:12:57 -04:00
generators Re-organize generator tests 2015-07-09 15:07:19 -04:00
if Remove `$FAIL` function 2015-06-09 19:44:25 -04:00
labeled Add tests for Unicode escape sequences 2015-07-09 18:52:22 -04:00
let Prefer explicit error checking where possible 2015-07-10 14:12:57 -04:00
return Add 'var' declarations for strict mode 2014-12-10 16:37:05 -08:00
switch Reorganize ./test 2014-12-07 15:33:09 -08:00
throw Prefer explicit error checking where possible 2015-07-10 14:12:57 -04:00
try Update handling of directive prologues 2015-06-18 17:38:34 -04:00
variable Update handling of directive prologues 2015-06-18 17:38:34 -04:00
while Add 'var' declarations for strict mode 2014-12-10 16:37:05 -08:00
with Update handling of directive prologues 2015-06-18 17:38:34 -04:00