X Tutup
Skip to content

Commit cad693d

Browse files
committed
refactor(NgZoneImpl): ensure zone spec is available
trace could be true (in dev mode) while there is no long stack trace spec Closes angular#7702
1 parent bf911fc commit cad693d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/angular2/src/core/zone/ng_zone_impl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export class NgZoneImpl {
4141
if (Zone['wtfZoneSpec']) {
4242
this.inner = this.inner.fork(Zone['wtfZoneSpec']);
4343
}
44-
if (trace) {
44+
if (trace && Zone['longStackTraceZoneSpec']) {
4545
this.inner = this.inner.fork(Zone['longStackTraceZoneSpec']);
4646
}
4747
this.inner = this.inner.fork({

0 commit comments

Comments
 (0)
X Tutup