File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55### Core library changes
66
7+ #### ` dart:async `
8+ * BREAKING CHANGE:
9+ Fixes bug in ` StreamIterator ` which allowed constructor argument to be ` null ` .
10+ Also allowed ` await for ` on a ` null ` stream. This is now a runtime error.
11+
712#### ` dart:core `
813
914* ** Breaking change** : The ` RegExp ` interface has been extended with two new
2732 This change only affects implementers of the ` RegExp ` interface; current
2833 code using Dart regular expressions will not be affected.
2934
35+ #### ` dart:isolate `
36+
37+ * BREAKING CHANGE: The ` await for ` allowed ` null ` as a stream due to a bug
38+ in ` StreamIterator ` class. This bug has now been fixed.
39+
3040## 2.3.0
3141
3242The focus in this release is on the new "UI-as-code" language features which
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ incomplete_field_formal_parameter: Fail # Fasta doesn't recover well
2020inference/bug31436: RuntimeError # Test exercises Dart 2.0 semantics
2121inference/constructors_too_many_positional_arguments: Fail
2222inference/downwards_inference_annotations_locals: Fail # Issue #30031
23+ inference/downwards_inference_for_each: RuntimeError # Issue #36382
2324inference/future_then_explicit_future: RuntimeError
2425inference/generic_methods_infer_js_builtin: RuntimeError # Test attempts to access platform-private library leading to NSM.
2526inference/infer_assign_to_index: Fail
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ inference/constructors_infer_from_arguments_argument_not_assignable: TypeCheckEr
3333inference/constructors_too_many_positional_arguments: InstrumentationMismatch # Issue #30040
3434inference/do_not_infer_overridden_fields_that_explicitly_say_dynamic_infer: TypeCheckError
3535inference/downwards_inference_annotations_type_variable: InstrumentationMismatch # Issue 28981
36+ inference/downwards_inference_for_each: RuntimeError # Issue #36382
3637inference/downwards_inference_on_function_of_t_using_the_t: InstrumentationMismatch # Issue #29798
3738inference/downwards_inference_on_list_literals_infer_downwards: RuntimeError
3839inference/future_then_explicit_future: InstrumentationMismatch # Issue #30040
Original file line number Diff line number Diff line change @@ -967,7 +967,8 @@ class _StreamIterator<T> implements StreamIterator<T> {
967967 /// completed.
968968 bool _isPaused = false ;
969969
970- _StreamIterator (final Stream <T > stream) : _stateData = stream;
970+ _StreamIterator (final Stream <T > stream)
971+ : _stateData = stream ?? (throw ArgumentError .notNull ("stream" ));
971972
972973 T get current {
973974 if (_subscription != null && _isPaused) {
You can’t perform that action at this time.
0 commit comments