Index: tests/compiler/dart2js/compiler_helper.dart |
diff --git a/tests/compiler/dart2js/compiler_helper.dart b/tests/compiler/dart2js/compiler_helper.dart |
index a2e9bd9e2fa8da9430bfbb2865b07e21e9394d94..c84f1d8d4c73b0facc794fedbc9ab99bf29d9783 100644 |
--- a/tests/compiler/dart2js/compiler_helper.dart |
+++ b/tests/compiler/dart2js/compiler_helper.dart |
@@ -46,8 +46,6 @@ export 'mock_compiler.dart'; |
Future<String> compile(String code, |
{String entry: 'main', |
- String coreSource: DEFAULT_CORELIB, |
- String interceptorsSource: DEFAULT_INTERCEPTORSLIB, |
bool enableTypeAssertions: false, |
bool minify: false, |
bool analyzeAll: false, |
@@ -55,11 +53,9 @@ Future<String> compile(String code, |
void check(String generated)}) { |
MockCompiler compiler = new MockCompiler.internal( |
enableTypeAssertions: enableTypeAssertions, |
- coreSource: coreSource, |
// Type inference does not run when manually |
// compiling a method. |
disableTypeInference: true, |
- interceptorsSource: interceptorsSource, |
enableMinification: minify, |
disableInlining: disableInlining); |
return compiler.init().then((_) { |
@@ -92,7 +88,7 @@ Future<String> compile(String code, |
MockCompiler compilerFor(String code, Uri uri, |
{bool analyzeAll: false, |
bool analyzeOnly: false, |
- String coreSource: DEFAULT_CORELIB, |
+ Map<String, String> coreSource, |
bool disableInlining: true, |
bool minify: false, |
int expectedErrors, |
@@ -110,7 +106,7 @@ MockCompiler compilerFor(String code, Uri uri, |
} |
Future<String> compileAll(String code, |
- {String coreSource: DEFAULT_CORELIB, |
+ {Map<String, String> coreSource, |
bool disableInlining: true, |
bool minify: false, |
int expectedErrors, |