Index: tests/isolate/isolate2_negative_test.dart |
diff --git a/tests/isolate/isolate2_negative_test.dart b/tests/isolate/isolate2_negative_test.dart |
index 49ccb2e6d4d8f161cdc89776d8c3481d13193cc6..03fdb3c82ac53a1802a6dab9138023093d4aa570 100644 |
--- a/tests/isolate/isolate2_negative_test.dart |
+++ b/tests/isolate/isolate2_negative_test.dart |
@@ -9,7 +9,7 @@ library isolate2_negative_test; |
import 'dart:isolate'; |
import "package:async_helper/async_helper.dart"; |
-void entry() { |
+void entry(msg) { |
throw "foo"; |
} |
@@ -18,5 +18,5 @@ main() { |
// anything back except an exception there is no asyncEnd(). |
// If the exception is not thrown this test will timeout. |
asyncStart(); |
- SendPort port = spawnFunction(entry); |
+ Isolate.spawn(entry); |
} |