chore: update zone.js to 0.5.1

fix #1862
This commit is contained in:
Victor Berchet
2015-05-19 09:13:17 +02:00
parent ad95601e3c
commit 94272af45b
6 changed files with 13 additions and 17 deletions

View File

@ -25,10 +25,9 @@ interface FakeAsyncZone extends NgZoneZone {
* @returns {Function} The function wrapped to be executed in the fakeAsync zone
*/
export function fakeAsync(fn: Function): Function {
// TODO(vicb) re-enable once the jasmine patch from zone.js is applied
// if (global.zone._inFakeAsyncZone) {
// throw new Error('fakeAsync() calls can not be nested');
//}
if ((<FakeAsyncZone>global.zone)._inFakeAsyncZone) {
throw new Error('fakeAsync() calls can not be nested');
}
var fakeAsyncZone = <FakeAsyncZone>global.zone.fork({
setTimeout: _setTimeout,