From cad693de0fd2662234eb692a2dae07261b5aa6be Mon Sep 17 00:00:00 2001 From: PatrickJS Date: Mon, 21 Mar 2016 13:57:02 -0700 Subject: [PATCH] refactor(NgZoneImpl): ensure zone spec is available trace could be true (in dev mode) while there is no long stack trace spec Closes #7702 --- modules/angular2/src/core/zone/ng_zone_impl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/angular2/src/core/zone/ng_zone_impl.ts b/modules/angular2/src/core/zone/ng_zone_impl.ts index 96ef145837..e9d513202d 100644 --- a/modules/angular2/src/core/zone/ng_zone_impl.ts +++ b/modules/angular2/src/core/zone/ng_zone_impl.ts @@ -41,7 +41,7 @@ export class NgZoneImpl { if (Zone['wtfZoneSpec']) { this.inner = this.inner.fork(Zone['wtfZoneSpec']); } - if (trace) { + if (trace && Zone['longStackTraceZoneSpec']) { this.inner = this.inner.fork(Zone['longStackTraceZoneSpec']); } this.inner = this.inner.fork({