Index: tests/compiler/dart2js/dart2js_batch2_test.dart |
diff --git a/tests/compiler/dart2js/dart2js_batch2_test.dart b/tests/compiler/dart2js/dart2js_batch2_test.dart |
index d2a1845614b6413462ad9401cd97dc128608bd0b..644c790a975b20c2e817d725c8b7550d65a516d4 100644 |
--- a/tests/compiler/dart2js/dart2js_batch2_test.dart |
+++ b/tests/compiler/dart2js/dart2js_batch2_test.dart |
@@ -39,7 +39,7 @@ Future setup() { |
tmpDir = directory; |
String newPath = path.join(directory.path, "dart2js_batch2_run.dart"); |
File source = |
- new File(Platform.script.resolve("dart2js_batch2_run.dart").path); |
+ new File.fromUri(Platform.script.resolve("dart2js_batch2_run.dart")); |
source.copySync(newPath); |
}); |
} |