| Index: tests/compiler/dart2js/static_closure_test.dart
|
| diff --git a/tests/compiler/dart2js/static_closure_test.dart b/tests/compiler/dart2js/static_closure_test.dart
|
| index 4003c61f2a73a0ed95a7c078fede24179960294b..b929d27af88c01dca6cbbf0a202abf74506e9d22 100644
|
| --- a/tests/compiler/dart2js/static_closure_test.dart
|
| +++ b/tests/compiler/dart2js/static_closure_test.dart
|
| @@ -8,14 +8,15 @@ import "package:expect/expect.dart";
|
| import 'compiler_helper.dart';
|
|
|
| main() {
|
| - String code = compileAll(r'''main() { print(main); }''');
|
| + compileAll(r'''main() { print(main); }''').then((code) {
|
| + // At some point, we will have to closurize global functions
|
| + // differently, at which point this test will break. Then it is time
|
| + // to implement a way to call a Dart closure from JS foreign
|
| + // functions.
|
|
|
| - // At some point, we will have to closurize global functions
|
| - // differently, at which point this test will break. Then it is time
|
| - // to implement a way to call a Dart closure from JS foreign
|
| - // functions.
|
| -
|
| - // If this test fail, please take a look at the use of
|
| - // toStringWrapper in captureStackTrace in js_helper.dart.
|
| - Expect.isTrue(code.contains(new RegExp(r'print\([$a-z]+\.main\$closure\);')));
|
| + // If this test fail, please take a look at the use of
|
| + // toStringWrapper in captureStackTrace in js_helper.dart.
|
| + Expect.isTrue(code.contains(
|
| + new RegExp(r'print\([$a-z]+\.main\$closure\);')));
|
| + });
|
| }
|
|
|