sdk
sdk copied to clipboard
The Dart SDK, including the VM, dart2js, core libraries, and more.
The following snippet throws an error instead of returning an error object: ```c++ Dart_Handle DartRuntimeHooks::GetCallbackFromHandle(int64_t handle) { Dart_Handle result = DartCallbackCache::GetCallback(handle); if (Dart_IsError(result)) { Dart_PropagateError(result); } return result; } ```...
**Goal**: We'd like to track progress on removing core library APIs that have earlier been deprecated. This will help us track progress towards our next Dart major version. **Frequency**: we'd...
There are new test failures on [[vm] Record field access operations...[dart2wasm] Trivial test for subtype of Object](https://github.com/dart-lang/sdk/compare/82f163fa4f6ddcf922b3e9fed038968b92d8c0f6~...e36a39437c9f3370528f578942aa22e732faad25). The tests ``` vm/dart_2/isolates/thread_pool_test Crash (expected Pass) ``` are failing on configurations ```...
In particular this comes up a lot with [bad casts](https://screenshot.googleplex.com/4reca8QSAWTgRLs) as well as types added to the left hand side where they are unnecessary. It is very common for the...
Hi, received a very strange report https://github.com/dart-code-checker/dart-code-metrics/issues/976 that having a plugins entry filled in the analysis_options (thus enabling the plugin), actually prevents dart analyze to run when there is no...
The analyzer reports an error on the following two cases. ```dart /// Subtracts 2 integers. @ffi.FfiNative('subtract') external int subtract( ffi.Pointer a, int b, ); /// Divides 2 floats, returns a...
For example, `SomeRenderObject.semanticBounds` may get deduplicated to `RenderClipOval._defaultBounds`, because the impelmentations are both `Offset.zero & size`, leading to a stack trace that looks like this: ``` at RenderBox.size(box.dart:2023) at RenderClipOval._defaultClip(proxy_box.dart:1731)...
See also #39780 (this test flakes on DDC Firefox) and #47725 (other async tests flake on dart2js Windows Chrome).
Original [issue](https://github.com/flutter/flutter/issues/111177) ```dart import 'dart:async'; import 'package:flutter_test/flutter_test.dart'; void main() { test('test case', () async { await expectLater( // create stream that emit Completer, and wait it ((() async* { try...
Part of https://github.com/dart-lang/sdk/issues/49713. It looks like CFE doesn't guard against visiting the same record when traversing deeply nested constant records. Constants form a DAG, and the same constant can be...