Index: tests/compiler/dart2js/codegen_helper.dart |
diff --git a/tests/compiler/dart2js/codegen_helper.dart b/tests/compiler/dart2js/codegen_helper.dart |
index 23884da29bb2d878ef09eee485e3136dfa17c5ae..4e8d4988587b01ef18a1e6cc1800bed2a570770a 100644 |
--- a/tests/compiler/dart2js/codegen_helper.dart |
+++ b/tests/compiler/dart2js/codegen_helper.dart |
@@ -9,7 +9,7 @@ import "../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart" |
show SourceString; |
Map<String, String> generate(String code, [List<String> options = const []]) { |
- Uri script = currentDirectory.resolve(nativeToUriPath(new Options().script)); |
+ Uri script = currentDirectory.resolve(nativeToUriPath(Platform.script)); |
Uri libraryRoot = script.resolve('../../../sdk/'); |
Uri packageRoot = script.resolve('./packages/'); |