Files
sdk/tests/lib_2/html/dom_isolates_test.dart.child_isolate.dart
T
Terry Lucas bbbb548e0a Migrated Block 195 to Dart 2.0
R=bkonyi@google.com

Change-Id: Ic5622d23d3159016625cfc17785f140ba9df409e
Reviewed-on: https://dart-review.googlesource.com/8739
Commit-Queue: Terry Lucas <terry@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
2017-10-05 06:08:10 +00:00

17 lines
438 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
import 'dart:html';
import 'dart:isolate';
main() {
port.receive((msg, replyTo) {
if (msg != 'check') {
replyTo.send('wrong msg: $msg');
}
replyTo.send('${window.location}');
port.close();
});
}