39ecf5f9d2
The documentation of IOSync states that calling flush on a closed IOSink may have no effect: https://github.com/dart-lang/sdk/blob/main/sdk/lib/io/io_sink.dart#L109 The future returned by close in the new implementation does not complete until after a call to flush has completed. The previous implementation of File.open did not throw when calling flush after close. CoreLibraryReviewExempt: IO only, restoring previous semantics Bug: b/274405250 Change-Id: I56bbe02e886085cc8156e60264f5b77593c8a075 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/289823 Reviewed-by: Emmanuel Pellereau <emmanuelp@google.com>
This directory contains tests of the language and core library implementations. For more information, see https://github.com/dart-lang/sdk/wiki/Testing.