Descriptiondeclare that dart2js fails some 'yield*' tests
These tests assert that 'yield*' expressions in non-generator functions
should be a compile-time error. But the spec does not have yield as a
reserved word, so a statement like 'yield* e;' can be interpreted as an
expression statement multiplying the variable 'yield' by e. This is how
dart2js and the VM interpret yield outside of generator functions.
See the discussion in issue #25495
R=sigmund@google.com
Committed: https://github.com/dart-lang/sdk/commit/e9d41ebc23ee341a027c5c4bb1b6af65a5d43a61
Patch Set 1 #
Messages
Total messages: 5 (2 generated)
|