| Index: tests/compiler/dart2js/compiler_helper.dart
|
| diff --git a/tests/compiler/dart2js/compiler_helper.dart b/tests/compiler/dart2js/compiler_helper.dart
|
| index bef0984b9151e8c905884965d6fc7c9105d94766..e365f3b82c048ffa093183f03768b756ad3dfad2 100644
|
| --- a/tests/compiler/dart2js/compiler_helper.dart
|
| +++ b/tests/compiler/dart2js/compiler_helper.dart
|
| @@ -112,6 +112,10 @@ Future<String> compile(String code,
|
| options.add(Flags.trustJSInteropTypeAnnotations);
|
| }
|
|
|
| + if (disableInlining) {
|
| + options.add(Flags.disableInlining);
|
| + }
|
| +
|
| Map<String, String> source;
|
| if (entry != 'main') {
|
| source = {'main.dart': "$code\n\nmain() => $entry;" };
|
| @@ -122,12 +126,7 @@ Future<String> compile(String code,
|
| CompilationResult result = await runCompiler(
|
| memorySourceFiles: source,
|
| options: options,
|
| - outputProvider: outputCollector,
|
| - beforeRun: (compiler) {
|
| - if (disableInlining) {
|
| - compiler.disableInlining = true;
|
| - }
|
| - });
|
| + outputProvider: outputCollector);
|
| Expect.isTrue(result.isSuccess);
|
| Compiler compiler = result.compiler;
|
| lego.Element element = compiler.mainApp.find(entry);
|
|
|