Index: pkg/kernel/testcases/closures/closures.dart.expect |
diff --git a/pkg/kernel/testcases/closures/closures.dart.expect b/pkg/kernel/testcases/closures/closures.dart.expect |
index 9803ad3348e81c0d5c721076b5638c8804daebc9..af90ef3641f8c6510c995b2e5bd5f4f76fed7559 100644 |
--- a/pkg/kernel/testcases/closures/closures.dart.expect |
+++ b/pkg/kernel/testcases/closures/closures.dart.expect |
@@ -1,18 +1,17 @@ |
library; |
import self as self; |
import "dart:core" as core; |
-import "dart:mock" as mock; |
class Closure#main#function extends core::Object implements core::Function { |
field core::String note = "This is temporary. The VM doesn't need closure classes."; |
- field mock::Context context; |
- constructor •(final mock::Context context) → dynamic |
+ field Vector context; |
+ constructor •(final Vector context) → dynamic |
: self::Closure#main#function::context = context |
; |
method call(dynamic x) → dynamic { |
"This is a temporary solution. In the VM, this will become an additional parameter."; |
- final mock::Context #contextParameter = this.{self::Closure#main#function::context}; |
- return #contextParameter.[](0).[](x); |
+ final Vector #contextParameter = this.{self::Closure#main#function::context}; |
+ return (#contextParameter[1]).[](x); |
} |
} |
static field dynamic f = null; |
@@ -20,8 +19,8 @@ static method foo() → dynamic { |
core::print(self::f.call(0)); |
} |
static method main(dynamic arguments) → dynamic { |
- final mock::Context #context = new mock::Context::•(1); |
- #context.[]=(0, arguments); |
+ final Vector #context = MakeVector(2); |
+ #context[1] = arguments; |
self::f = new self::Closure#main#function::•(#context); |
self::foo(); |
} |