sdk
sdk copied to clipboard
The Dart SDK, including the VM, dart2js, core libraries, and more.
https://gist.github.com/tvolkert/0967e7676686e96c54a921e26f1161b3 The example shows that you can't write data to an `IOSink` while a `flush` is in progress. Doing so results in a `StateError` ("StreamSink is bound to a stream")....
Hello dart team, the team I am working with and myself are looking for a way to set a very specific TLS Cipher Suit to the Dart `HTTPClient` and `SecurityContext`....
A security exception is thrown when trying to access the contentWindow property of a cross domain iframe using static interop: ```dart frame.contentWindow!.postMessage(...) ``` Given the same setup using non static...
Trying to access the [`contentWindow`](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/contentWindow) of a sandboxed iframe results in an error similar to the following: ``` DOMException: Failed to read a named property 'toString' from 'Window': Blocked a...
The analyzer shows no errors for the following code: ```dart void main() { bar(null); } void bar(Foo? foo) { print(foo.i); } extension type Foo(int i) {} ``` However when running...
## Setup Take into consderation the following library code: ```dart sealed class SealedType {} class A extends SealedType {} class B extends SealedType {} String runSwitch(SealedType type) { return switch...
* Dart version and tooling diagnostic info (`dart info`) ``` txt If providing this information as part of reporting a bug, please review the information below to ensure it only...
The tests ``` pkg/dartdev/test/commands/create_integration_test RuntimeError (expected Pass) ``` are failing on configurations ``` unittest-asserts-release-linux-x64 unittest-asserts-release-mac-x64 unittest-asserts-release-linux-arm64 ``` These were triggered from unrelated changes. The first two configurations on [skip computing...
```dart Object foo(Object o) => o; const c = foo(1); ``` Analyzer produces error `Methods can't be invoked in constant expressions.`, CFE `Method invocation is not a constant expression.`. Why...
TL;DR: Replacing records with classes in a few maps reduces runtime with ~28% and makes `SlowTypeTest` go from taking ~22% of the time to basically taking nothing. This is only...