dart-sdk/sdk/lib/internal/print.dart
Leaf Petersen faa4ff9408 Type on printToZone, and startRootIsolate fix.
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>
2017-12-04 22:57:04 +00:00

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);