mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 00:58:29 +00:00
[core libs] add dart:developer, dart:js_util, and dart:wasm to the set of validated libraries
Change-Id: Id54af09f7b7559c5eb751db822aba8cd6b413559 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241160 Reviewed-by: Jonas Termansen <sortie@google.com> Reviewed-by: Lasse Nielsen <lrn@google.com> Commit-Queue: Devon Carew <devoncarew@google.com>
This commit is contained in:
parent
6fdaed9eba
commit
eec99f4f0b
|
@ -4,6 +4,9 @@
|
|||
|
||||
part of dart.developer;
|
||||
|
||||
// Examples can assume:
|
||||
// void doSomething() {}
|
||||
|
||||
const bool _hasTimeline =
|
||||
const bool.fromEnvironment("dart.developer.timeline", defaultValue: true);
|
||||
|
||||
|
|
|
@ -17,6 +17,10 @@ import 'dart:async' show Completer;
|
|||
import 'dart:_js_helper'
|
||||
show convertDartClosureToJS, assertInterop, assertInteropArgs;
|
||||
|
||||
// Examples can assume:
|
||||
// class JS { const JS(); }
|
||||
// class Promise<T> {}
|
||||
|
||||
/// Recursively converts a JSON-like collection to JavaScript compatible
|
||||
/// representation.
|
||||
///
|
||||
|
@ -305,9 +309,11 @@ class NullRejectionException implements Exception {
|
|||
/// @JS()
|
||||
/// external Promise<num> get threePromise; // Resolves to 3
|
||||
///
|
||||
/// final Future<num> threeFuture = promiseToFuture(threePromise);
|
||||
/// void main() async {
|
||||
/// final Future<num> threeFuture = promiseToFuture(threePromise);
|
||||
///
|
||||
/// final three = await threeFuture; // == 3
|
||||
/// final three = await threeFuture; // == 3
|
||||
/// }
|
||||
/// ```
|
||||
Future<T> promiseToFuture<T>(Object jsPromise) {
|
||||
final completer = Completer<T>();
|
||||
|
|
|
@ -3682,14 +3682,17 @@
|
|||
"script": "out/ReleaseX64/dart-sdk/bin/dart",
|
||||
"arguments": [
|
||||
"tools/verify_docs/bin/verify_docs.dart",
|
||||
"sdk/lib/_http",
|
||||
"sdk/lib/_internal",
|
||||
"sdk/lib/cli",
|
||||
"sdk/lib/convert",
|
||||
"sdk/lib/ffi",
|
||||
"sdk/lib/js",
|
||||
"sdk/lib/math",
|
||||
"sdk/lib/mirrors"
|
||||
"dart:_http",
|
||||
"dart:_internal",
|
||||
"dart:cli",
|
||||
"dart:convert",
|
||||
"dart:developer",
|
||||
"dart:ffi",
|
||||
"dart:js",
|
||||
"dart:js_util",
|
||||
"dart:math",
|
||||
"dart:mirrors",
|
||||
"dart:wasm"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue