| Index: tests/compiler/dart2js/closure_codegen_test.dart
|
| diff --git a/tests/compiler/dart2js/closure_codegen_test.dart b/tests/compiler/dart2js/closure_codegen_test.dart
|
| index b4399a843078bb16482e9e6c91050bc6b593f76c..1e673c18813a4888cb122844110c83cbc629e8af 100644
|
| --- a/tests/compiler/dart2js/closure_codegen_test.dart
|
| +++ b/tests/compiler/dart2js/closure_codegen_test.dart
|
| @@ -52,10 +52,11 @@ closureInvocation() {
|
| // Make sure that the bailout version does not introduce a second version of
|
| // the closure.
|
| closureBailout() {
|
| - String generated = compileAll(TEST_BAILOUT);
|
| - RegExp regexp = new RegExp(r'call\$0: function');
|
| - Iterator<Match> matches = regexp.allMatches(generated).iterator;
|
| - checkNumberOfMatches(matches, 1);
|
| + compileAll(TEST_BAILOUT).then((generated) {
|
| + RegExp regexp = new RegExp(r'call\$0: function');
|
| + Iterator<Match> matches = regexp.allMatches(generated).iterator;
|
| + checkNumberOfMatches(matches, 1);
|
| + });
|
| }
|
|
|
| main() {
|
|
|