blob: 517ae3470a4fc1969cabd729048778d6155b6135 [file] [log] [blame]
// Copyright (c) 2021, 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.
// See
// @dart = 2.9
import "dart:developer";
import "dart:isolate";
import "package:async_helper/async_helper.dart";
main() {
var port;
port = new RawReceivePort((message) {
var expando = message as Expando;
// Sent and received without error.
var unwrittenKey = new Object();
var expando = new Expando();
expando[unwrittenKey] = new UserTag("cant send this");
print(unwrittenKey); // Ensure [unwrittenKey] is live during [send].