Index: tests/compiler/dart2js/memory_source_file_helper.dart |
diff --git a/tests/compiler/dart2js/memory_source_file_helper.dart b/tests/compiler/dart2js/memory_source_file_helper.dart |
index 16cccf3d7b5c9838ae2c2ad7f34090222363560c..26a33b0b906a2b22fb5aa6f4641684c9b9240c3f 100644 |
--- a/tests/compiler/dart2js/memory_source_file_helper.dart |
+++ b/tests/compiler/dart2js/memory_source_file_helper.dart |
@@ -32,10 +32,10 @@ class MemorySourceFileProvider extends SourceFileProvider { |
return super.readStringFromUri(resourceUri); |
} |
String source = MEMORY_SOURCE_FILES[resourceUri.path]; |
- // TODO(ahe): Return new Future.immediateError(...) ? |
+ // TODO(ahe): Return new Future.error(...) ? |
if (source == null) throw 'No such file $resourceUri'; |
String resourceName = '$resourceUri'; |
this.sourceFiles[resourceName] = new SourceFile(resourceName, source); |
- return new Future.immediate(source); |
+ return new Future.value(source); |
} |
} |