bbbb548e0a
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>
17 lines
438 B
Dart
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();
|
|
});
|
|
}
|