Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(802)

Unified Diff: tests/isolate/illegal_msg_function_test.dart

Issue 584843003: Allow sending static/top-level functions through ports and as isolate (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Update status files. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/isolate/function_send_test.dart ('k') | tests/isolate/isolate.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/illegal_msg_function_test.dart
diff --git a/tests/isolate/illegal_msg_function_test.dart b/tests/isolate/illegal_msg_function_test.dart
index 5493abe504be7dddc7877184c3dc67d28b219a04..95d409fa07c209bd380f7dcaea16b42ff3c08f24 100644
--- a/tests/isolate/illegal_msg_function_test.dart
+++ b/tests/isolate/illegal_msg_function_test.dart
@@ -9,8 +9,6 @@ import "dart:async" show Future;
import "package:unittest/unittest.dart";
import "remote_unittest_helper.dart";
-funcFoo(x) => x + 2;
-
echo(sendPort) {
var port = new ReceivePort();
sendPort.send(port.sendPort);
@@ -22,7 +20,7 @@ echo(sendPort) {
void main([args, port]) {
if (testRemote(main, port)) return;
test("msg_function", () {
- var function = funcFoo;
+ var function = (x) => x + 2;
ReceivePort port = new ReceivePort();
Future spawn = Isolate.spawn(echo, port.sendPort);
var caught_exception = false;
« no previous file with comments | « tests/isolate/function_send_test.dart ('k') | tests/isolate/isolate.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698