| Index: tests/compiler/dart2js_extra/19191_test.dart
|
| diff --git a/tests/compiler/dart2js_extra/19191_test.dart b/tests/compiler/dart2js_extra/19191_test.dart
|
| index a5c4b560398a4bfbefbf5b2ca28508637f1bf7bf..7e628fd990f882333ea815a0bc9715db261e7118 100644
|
| --- a/tests/compiler/dart2js_extra/19191_test.dart
|
| +++ b/tests/compiler/dart2js_extra/19191_test.dart
|
| @@ -6,7 +6,7 @@
|
|
|
| class A {
|
| var method;
|
| -
|
| +
|
| noSuchMethod(Invocation invocation) {
|
| if (invocation.isGetter) {
|
| return method;
|
| @@ -14,20 +14,20 @@ class A {
|
| method = invocation.positionalArguments[0];
|
| return null;
|
| } else if (invocation.isMethod) {
|
| - return Function.apply(method, invocation.positionalArguments,
|
| - invocation.namedArguments);
|
| + return Function.apply(
|
| + method, invocation.positionalArguments, invocation.namedArguments);
|
| } else {
|
| throw new NoSuchMethodError(this, invocation.memberName,
|
| invocation.positionalArguments, invocation.namedArguments);
|
| }
|
| }
|
| -
|
| +
|
| init() {
|
| closure_fails = (String str) {
|
| return str.toUpperCase();
|
| };
|
| }
|
| -
|
| +
|
| run() {
|
| print(closure_fails("Hello World"));
|
| }
|
| @@ -38,4 +38,3 @@ void main() {
|
| a.init();
|
| a.run();
|
| }
|
| -
|
|
|