Index: tests/compiler/dart2js_extra/isolate2_test.dart |
diff --git a/tests/compiler/dart2js_extra/isolate2_negative_test.dart b/tests/compiler/dart2js_extra/isolate2_test.dart |
similarity index 72% |
rename from tests/compiler/dart2js_extra/isolate2_negative_test.dart |
rename to tests/compiler/dart2js_extra/isolate2_test.dart |
index 8004371dae94dad3e11553da647ee4c28879eb0a..ea06acdefea2e9346e2e092dceff81f94a9a5858 100644 |
--- a/tests/compiler/dart2js_extra/isolate2_negative_test.dart |
+++ b/tests/compiler/dart2js_extra/isolate2_test.dart |
@@ -10,11 +10,13 @@ |
library isolate2_negative_test; |
import 'dart:isolate'; |
-void entry() { |
- throw "foo"; |
+void entry(SendPort replyTo) { |
+ throw "foo"; /// 01: runtime error |
+ replyTo.send("done"); |
} |
main() { |
- SendPort port = spawnFunction(entry); |
- port.receive((msg) {}); |
+ var port = new ReceivePort(); |
+ Isolate.spawn(entry, port.sendPort); |
+ port.first; |
} |