blob: 54ce8a74005d829d64550a631d99c3bb95f1eb19 [file] [log] [blame]
// Copyright (c) 2016, 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.
import 'dart:isolate';
var subscription;
void onData(x) {
main() {
var string = new String.fromCharCode(65); // External string factory.
var port = new ReceivePort(); // External factory.
subscription = port.listen(onData); // Dynamic call on external instance.