refactor(NgZoneImpl): ensure zone spec is available

trace could be true (in dev mode) while there is no long stack trace spec
Closes #7702
This commit is contained in:
PatrickJS 2016-03-21 13:57:02 -07:00
parent bf911fc992
commit cad693de0f
1 changed files with 1 additions and 1 deletions

View File

@ -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({