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

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

Issue 1382313002: dart2js: set effective target for patched constructors (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « pkg/compiler/lib/src/resolution/resolution.dart ('k') | tests/compiler/dart2js/patch_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/mock_compiler.dart
diff --git a/tests/compiler/dart2js/mock_compiler.dart b/tests/compiler/dart2js/mock_compiler.dart
index 5c3301149f03afc0b48ab8851b8b4927fd274e24..7456c291e470acbd5caa87b4513524eb11057d5b 100644
--- a/tests/compiler/dart2js/mock_compiler.dart
+++ b/tests/compiler/dart2js/mock_compiler.dart
@@ -220,9 +220,10 @@ class MockCompiler extends Compiler {
if (diagnosticHandler != null) {
SourceSpan span = message.sourceSpan;
if (span != null) {
- diagnosticHandler(span.uri, span.begin, span.end, '$message', kind);
+ diagnosticHandler(
+ span.uri, span.begin, span.end, '${message.message}', kind);
} else {
- diagnosticHandler(null, null, null, '$message', kind);
+ diagnosticHandler(null, null, null, '${message.message}', kind);
}
}
}
« no previous file with comments | « pkg/compiler/lib/src/resolution/resolution.dart ('k') | tests/compiler/dart2js/patch_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698