Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(710)

Unified Diff: tests/compiler/dart2js/memory_source_file_helper.dart

Issue 2150333002: Serialize this-types in NativeBehavior separately. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 2efa806afe50a2455d983d01b60339eacc5dc13e..c6b3b3cf33b8c237d860600d4b4a075b7d9f33f2 100644
--- a/tests/compiler/dart2js/memory_source_file_helper.dart
+++ b/tests/compiler/dart2js/memory_source_file_helper.dart
@@ -33,7 +33,8 @@ class MemorySourceFileProvider extends SourceFileProvider {
}
String source = memorySourceFiles[resourceUri.path];
if (source == null) {
- return new Future.error(new Exception('No such file $resourceUri'));
+ return new Future.error(new Exception(
+ 'No such memory file $resourceUri in ${memorySourceFiles.keys}'));
}
this.sourceFiles[resourceUri] =
new StringSourceFile.fromUri(resourceUri, source);
@@ -48,7 +49,8 @@ class MemorySourceFileProvider extends SourceFileProvider {
}
String source = memorySourceFiles[resourceUri.path];
if (source == null) {
- throw new Exception('No such file $resourceUri');
+ throw new Exception(
+ 'No such memory file $resourceUri in ${memorySourceFiles.keys}');
}
return new StringSourceFile.fromUri(resourceUri, source);
}
« no previous file with comments | « pkg/compiler/lib/src/serialization/serialization.dart ('k') | tests/compiler/dart2js/serialization/helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698