mirror of
https://github.com/dart-lang/sdk
synced 2024-09-15 23:39:48 +00:00
faa4ff9408
Put a precise type on the printToZone variable, and change entry calls in startRootIsolate to avoid casting arguments to Null. Bug: Change-Id: Ia7d23e8dafa93bd6246ec7fa9b8c14411db30421 Reviewed-on: https://dart-review.googlesource.com/18683 Commit-Queue: Leaf Petersen <leafp@google.com> Reviewed-by: Bob Nystrom <rnystrom@google.com>
18 lines
565 B
Dart
18 lines
565 B
Dart
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
part of dart._internal;
|
|
|
|
/**
|
|
* This function is set by the first allocation of a Zone.
|
|
*
|
|
* Once the function is set the core `print` function calls this closure instead
|
|
* of [printToConsole].
|
|
*
|
|
* This decouples the core library from the async library.
|
|
*/
|
|
void Function(String) printToZone = null;
|
|
|
|
external void printToConsole(String line);
|