Commit Graph

18 Commits

Author SHA1 Message Date
Caitlin Potter 1144b5a86b Update test cases for spec-change
This change updates test cases to assume that the "next" method is only
loaded from a synchronous iterator once, and is re-used for each call to
Async-from-Sync Iterator.next(), based on https://github.com/tc39/ecma262/pull/988
2017-10-17 14:34:23 -04:00
Caitlin Potter 2d8258fec8 Update async iteration tests with respect to pending spec change
Update behaviour based on changes from https://github.com/tc39/ecma262/pull/988.
The actual spec change PR for async iteration is not yet uploaded.

This does not include any changes to Async-from-Sync Iterator.
2017-10-04 11:24:27 +02:00
Leo Balter cf68ab3e5e Add Symbol.iterator features flags to test generation files 2017-09-08 10:13:50 -04:00
Leo Balter c41faf1aca Add missing Symbol features flags 2017-09-07 15:51:13 -04:00
André Bargull f810ad2550 Fix issues in async generator case files
Incorrect $DONE handlers which led to calling $DONE twice
- async-generators/yield-promise-reject-next-yield-star-async-iterator.case
- dstr-assignment-for-await/array-elem-trlg-iter-rest-nrml-close-skip.case

$DONE handler not called at all:
- dstr-assignment-for-await/array-elem-put-const.case
- dstr-assignment-for-await/array-elem-trlg-iter-elision-iter-nrml-close-null.case

Incorrect assumed execution sequence in IteratorDestructuringAssignmentEvaluation:
- dstr-assignment-for-await/array-elem-iter-rtrn-close-null.case
2017-09-04 09:42:06 -04:00
Rick Waldron eaec1ffe2f async-iteration: yield Promise.reject(value) is treated as throw value (rejects)
- http://tc39.github.io/tc39-notes/2017-05_may-25.html#15iva-revisiting-async-generator-yield-behavior
- http://tc39.github.io/tc39-notes/2017-05_may-25.html#conclusionresolution-12

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2017-06-28 12:03:09 -04:00
Mike Pennisi 81d00def42 Force "early error" tests to fail if evaluated
This pattern makes expectations more explicit by making test files more
literal.
2017-06-28 11:24:36 -04:00
André Bargull 36a8672ae6 Add templates for escaped and unescaped 'yield' and 'await' as identifiers 2017-05-02 12:09:31 -07:00
Caitlin Potter 9979d72764 Update Async-from-Sync Iterator yield* tests
Ordering of done and value property loads changed in
395b2e3b2f
2017-04-10 18:24:22 -04:00
André Bargull 3291704eb2
Fix multiple test errors
Tests doesn't use async functionality and don't call $DONE, so remove
"async" flag:
- src/params/error/async-gen-named-func-expr.template
- test/language/expressions/async-generator/params-named-dflt-abrupt.js
- test/language/expressions/async-generator/params-named-dflt-ref-later.js
- test/language/expressions/async-generator/params-named-dflt-ref-self.js

Intl.PluralRules.prototype is no longer a Intl.Prototype instance:
- test/intl402/PluralRules/prototype/prototype.js

Intl.PluralRules throws an error when called as a function:
- test/intl402/PluralRules/undefined-newtarget-throws.js

Module namespace objects call OrdinaryDelete for symbol properties:
- test/language/module-code/namespace/internals/delete-non-exported.js

Async generators no longer retrieves "done" property twice:
- src/async-generators/yield-star-async-next.case
- src/async-generators/yield-star-async-return.case
- src/async-generators/yield-star-async-throw.case

Minor units of CLF is 4, so we need to test with maximumFractionDigits=3
to get an error:
- test/intl402/NumberFormat/dft-currency-mnfd-range-check-mxfd.js

DateTimeFormat.prototype.formatToParts length property was changed from
0 to 1:
- test/intl402/DateTimeFormat/prototype/formatToParts/length.js

minimumSignificantDigits and maximumSignificantDigits properties are
only retrieved once:
- test/intl402/NumberFormat/11.1.1_32.js
2017-04-06 15:30:13 -04:00
Rick Waldron 818bb8d88f Merge pull request #938 from leobalter/yield-star-abrupt-getiter
Add cases for abrupt completions in yield* in async generator - getIterator
2017-04-06 11:43:29 -04:00
Rick Waldron d7f4f5f664 Merge pull request #937 from leobalter/yield-star
templates for yield star flow
2017-04-06 11:43:21 -04:00
Leo Balter 2c6a82e55f
Add cases for abrupt completions in yield* in async generator - next
Closes #883
2017-03-27 21:42:06 -04:00
Leo Balter 78388c5ac2
Add cases for abrupt completions in yield* in async generator - getting iterator
Closes #873
2017-03-27 20:38:14 -04:00
Leo Balter a010c9cf91
Add cases for yield stars flow 2017-03-27 17:15:27 -04:00
Leo Balter 6ad75adb0e
Add async-iteration features flag 2017-03-27 13:07:10 -04:00
Leonardo Balter e34a56774e
Improve some yield cases based on feedback 2017-03-27 13:07:09 -04:00
Leonardo Balter 3a4e3bd8b1
Add generators templates for async gen 2017-03-27 13:07:07 -04:00