sdk
sdk copied to clipboard
The Dart SDK, including the VM, dart2js, core libraries, and more.
**Edit**: The old description talked about `unused_import`. Updated to reflect the comment from bwilkerson. --- I noticed two things about a file importing itself: 1. We can shorten the number...
https://api.dart.dev/dart-core/Iterable-class.html should link to https://dart.dev/codelabs/iterables. Related issue: dart-lang/site-www#2245
According to `Stream.multi` documentation https://github.com/dart-lang/sdk/blob/0342791d3374446b32be4ed7ec795be0c88c40d9/sdk/lib/async/stream.dart#L398 It's not quite true in the case when a source of `MultiStreamController.addStream()` is a single-subscription stream. For example: ```dart main() { var source = StreamController();...
Say I have this file `t.dart`: ```dart import "dart:developer"; void main() { int i = 42; debugger(); print(i); } ``` and I run it like this: ``` out/ReleaseX64/dart --enable-vm-service t.dart...
Large code bases appear to strongly negatively affect code completion time. To be more precise, code completion in libraries with a large namespace, or a large potential namespace (suggesting things...
Historically, it was common for users to treat JS values through interop as Dart types and not JS types, mainly because the concept of "JS types" did not exist yet....
Today, we provide [`@JSExport`](https://api.flutter.dev/flutter/dart-js_interop/JSExport-class.html) as a mechanism with `dart:js_interop` to expoe objects to JavaScript with a public API. This was primarily meant to be used as a mechanism to create...
https://ci.chromium.org/ui/p/dart-internal/builders/ci/dart-sdk-win-beta/165/overview exposed non-deterministic Windows x64 snapshots (strangely, ia32 snapshots seemed to be deterministic). Non-deterministic snapshots: * bin/snapshots/analysis_server.dart.snapshot * bin/snapshots/dart2js.dart.snapshot * bin/snapshots/dartdevc.dart.snapshot * bin/snapshots/kernel-service.dart.snapshot https://chrome-infra-packages.appspot.com/p/flutter/dart-sdk/windows-amd64/+/git_revision:d916a5f69a486de98316900f19ef0ff46834b03d https://storage.cloud.google.com/dart-archive/channels/beta/raw/hash/d916a5f69a486de98316900f19ef0ff46834b03d/sdk/dartsdk-windows-x64-release.zip @rmacnak-google any ideas?
``` WARNING: ThreadSanitizer: data race (pid=660615) Atomic write of size 8 at 0x72640004fb98 by thread T2: #0 unsigned long std::_LIBCPP_ABI_NAMESPACE::__cxx_atomic_fetch_or[abi:v15000](std::_LIBCPP_ABI_NAMESPACE::__cxx_atomic_base_impl*, unsigned long, std::_LIBCPP_ABI_NAMESPACE::memory_order) out/ReleaseTSANX64/../../third_party/libcxx/include/atomic:1063:12 (dart+0x28ed404) #1 std::_LIBCPP_ABI_NAMESPACE::__atomic_base::fetch_or[abi:v15000](unsigned long, std::_LIBCPP_ABI_NAMESPACE::memory_order) out/ReleaseTSANX64/../../third_party/libcxx/include/atomic:1705:17...
``` WARNING: ThreadSanitizer: data race (pid=43266) Read of size 8 at 0x561f83bf0db8 by thread T821: #0 dart::Page::Deallocate() out/ReleaseTSANX64/../../runtime/vm/heap/page.cc:166:20 (dart_precompiled_runtime+0xa4f0a7) #1 dart::SemiSpace::~SemiSpace() out/ReleaseTSANX64/../../runtime/vm/heap/scavenger.cc:747:11 (dart_precompiled_runtime+0xa5ef24) #2 dart::Scavenger::~Scavenger() out/ReleaseTSANX64/../../runtime/vm/heap/scavenger.cc:827:3 (dart_precompiled_runtime+0xa5ef24) #3 dart::Heap::~Heap() out/ReleaseTSANX64/../../runtime/vm/heap/heap.cc:77:1...