test262/test/language/statements
jugglinmike be19aaa18e Add tests ensuring iterator is not closed (#702)
A subtle aspect of the for-of iteration protocol concerns abrupt
completions that do *not* trigger iterator closing. Although this detail
is implicit in the current structure of the specification text, some
hosts may violate the protocol by closing the iterator because later
steps *do* specify that behavior.

The V8 engine is one such host--as of this writing, it incorrectly
closes the iterator when accessing the `value` property of the iterator
result produces an abrupt completion.

Add tests verifying that the iterator protocol is not violated in this
way for abrupt completions during the semantics of for-of evaluation.
2016-06-28 10:55:18 -04:00
..
block Add tests for Lexical Environment management 2016-04-28 09:44:41 -04:00
break Replace runTestCase with assert helpers [test/language/statements/] 2015-08-06 18:33:10 +02:00
class Add tests for arguments obj with dflt parameters 2016-06-21 12:22:49 -04:00
const Generate tests 2016-05-10 11:57:37 -04:00
continue Replace runTestCase with assert helpers [test/language/statements/] 2015-08-06 18:33:10 +02:00
debugger Add tests for `debugger` statement 2016-03-09 11:12:56 -05:00
do-while Add syntax tests for declaration restrictions 2016-03-11 12:23:15 -05: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 Merge pull request #607 from bocoup/envs 2016-05-30 16:13:33 -04:00
for-in Merge pull request #651 from bocoup/generation-dstr-assign 2016-06-01 14:00:09 -04:00
for-of Add tests ensuring iterator is not closed (#702) 2016-06-28 10:55:18 -04:00
function Add tests for arguments obj with dflt parameters 2016-06-21 12:22:49 -04:00
generators Add tests for arguments obj with dflt parameters 2016-06-21 12:22:49 -04:00
if Add tests for Annex B.3.3/B.3.4 2016-04-18 16:18:54 -04:00
labeled Add syntax tests for declaration restrictions 2016-03-11 12:23:15 -05:00
let Generate tests 2016-05-10 11:57:37 -04:00
return s/id/esid 2016-02-22 09:47:42 -05:00
switch Add tests for Lexical Environment management 2016-04-28 09:44:41 -04:00
throw Prefer explicit error checking where possible 2015-07-10 14:12:57 -04:00
try Merge pull request #607 from bocoup/envs 2016-05-30 16:13:33 -04:00
variable Generate tests 2016-05-10 11:57:37 -04:00
while Add syntax tests for declaration restrictions 2016-03-11 12:23:15 -05:00
with Add test for abrupt completion from HasBinding 2016-06-21 12:14:53 -04:00