test262/test/language
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
..
arguments-object Improve compatibility for engines without support for Annex B 2015-09-07 20:40:09 +02:00
asi Remove a blank line to stop confusing YAML parsers 2016-03-04 15:01:01 -05:00
block-scope Invalid language tests 2015-04-27 16:56:19 +02:00
comments Add tests for Annex B extns to comments (#612) 2016-05-09 18:29:18 -04:00
computed-property-names Invalid language tests 2015-04-27 16:56:19 +02:00
destructuring/binding ObjectBindingPatterns can't end with multiple commas 2015-12-29 16:50:23 -05:00
directive-prologue Replace runTestCase with assert helpers [test/language/directive-prologue] 2015-08-13 17:35:04 +02:00
eval-code Merge pull request #587 from bocoup/generation-annexb-fns 2016-05-31 17:45:48 -04:00
expressions Add tests for arguments obj with dflt parameters 2016-06-21 12:22:49 -04:00
function-code Merge pull request #587 from bocoup/generation-annexb-fns 2016-05-31 17:45:48 -04:00
future-reserved-words Replace runTestCase with assert.throws [test/language/] 2015-08-11 17:43:21 +02:00
global-code Add test ensuring withEnvironment flag is honored 2016-06-21 12:14:53 -04:00
identifier-resolution Reduce reliance on `fnGlobalObject.js` 2016-04-25 11:09:21 -07:00
identifiers Remove extraneous indent in header, for consistency 2015-08-24 15:24:10 -07:00
import - Remove inline license 2015-07-17 19:55:00 +02:00
keywords Reorganize ./test 2014-12-07 15:33:09 -08:00
line-terminators Replace runTestCase with assert.throws [test/language/] 2015-08-11 17:43:21 +02:00
literals Add tests for Annex B extns to RegExp patterns 2016-05-10 10:38:04 -04:00
module-code Add tests for Annex B extns to comments (#612) 2016-05-09 18:29:18 -04:00
punctuators Fix strict mode errors in language 2015-05-08 17:27:52 +02:00
reserved-words Update meta data: `id` to `esid` 2016-03-10 19:46:46 -05:00
rest-parameters s/id/esid 2016-02-22 09:47:42 -05:00
source-text Remove links to hg.ecmascript.org 2015-07-17 17:43:09 +02:00
statements Add tests ensuring iterator is not closed (#702) 2016-06-28 10:55:18 -04:00
types Add tests for object coercion of Reference base (#646) 2016-06-03 10:56:59 -04:00
white-space Fix strict mode errors in language/{identifiers, line-terminators, white-space} 2015-05-08 17:33:33 +02:00