| Index: third_party/pkg/angular/lib/mock/module.dart
|
| diff --git a/third_party/pkg/angular/lib/mock/module.dart b/third_party/pkg/angular/lib/mock/module.dart
|
| index 8841df55d1d72bcf9c72973fb69c2fe828f332f1..92b7386a64631bcdd3761c6ea05b9b604f17255f 100644
|
| --- a/third_party/pkg/angular/lib/mock/module.dart
|
| +++ b/third_party/pkg/angular/lib/mock/module.dart
|
| @@ -43,9 +43,8 @@ class AngularMockModule extends Module {
|
| type(MockHttpBackend);
|
| factory(HttpBackend, (Injector i) => i.get(MockHttpBackend));
|
| factory(NgZone, (_) {
|
| - NgZone zone = new NgZone();
|
| - zone.onError = (dynamic e, dynamic s, LongStackTrace ls) => dump('EXCEPTION: $e\n$s\n$ls');
|
| - return zone;
|
| + return new NgZone()
|
| + ..onError = (e, s, LongStackTrace ls) => dump('EXCEPTION: $e\n$s\n$ls');
|
| });
|
| type(Window, implementedBy: MockWindow);
|
| }
|
|
|