refactor(chore): remove deprecated NgZoneError (#10822)

BREAKING CHANGE: previously deprecated NgZoneError has been removed
This commit is contained in:
Igor Minar
2016-08-15 16:10:30 -07:00
committed by vikerman
parent 48751cceae
commit 3f5331be9d
7 changed files with 15 additions and 34 deletions

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {NgZone, NgZoneError} from '@angular/core/src/zone/ng_zone';
import {NgZone} from '@angular/core/src/zone/ng_zone';
import {AsyncTestCompleter, Log, beforeEach, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal';
import {browserDetection} from '@angular/platform-browser/testing/browser_util';
@ -31,9 +31,9 @@ const resolvedPromise = Promise.resolve(null);
function logOnError() {
_zone.onError.subscribe({
next: (ngErr: NgZoneError) => {
_errors.push(ngErr.error);
_traces.push(ngErr.stackTrace);
next: (error: any) => {
_errors.push(error);
_traces.push(error.stack);
}
});
}