fix: make sure that Zone does not show up in angular2.d.ts#7655
fix: make sure that Zone does not show up in angular2.d.ts#7655mhevery wants to merge 2 commits intoangular:masterfrom
Conversation
mhevery
commented
Mar 18, 2016
- Please check if the PR fulfills these requirements
- The commit message follows our guidelines: https://github.com/angular/angular/blob/master/CONTRIBUTING.md#commit-message-format
- Tests for the changes have been added (for bug fixes / features)
- Docs have been added / updated (for bug fixes / features)
- What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
- What is the current behavior? (You can also link to an open issue here)
- What is the new behavior (if this is a feature change)?
- Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
- Other information:
| throw new Error('Angular2 needs to be run with Zone.js polyfill.'); | ||
| } | ||
| } | ||
| this.inner = this.inner.fork({ |
There was a problem hiding this comment.
nit: this gets pretty deeply nested, did you consider a private inner class that implements ZoneSpec?
There was a problem hiding this comment.
Yes, I thought about it, but this is cheaper in terms of number of bytes. If you feel strongly I can make the change.
There was a problem hiding this comment.
Nope, don't feel strongly.
On Thu, Mar 17, 2016 at 9:56 PM Miško Hevery notifications@github.com
wrote:
In modules/angular2/src/core/zone/ng_zone_impl.ts
#7655 (comment):@@ -45,52 +44,56 @@ export class NgZoneImpl implements ZoneSpec {
if (trace) {
this.inner = this.inner.fork(Zone['longStackTraceZoneSpec']);
}
this.inner = this.inner.fork(this);- } else {
throw new Error('Angular2 needs to be run with Zone.js polyfill.');- }
- }
this.inner = this.inner.fork({Yes, I thought about it, but this is cheaper in terms of number of bytes.
If you feel strongly I can make the change.—
You are receiving this because you were assigned.
Reply to this email directly or view it on GitHub
https://github.com/angular/angular/pull/7655/files/17c5193fc0b648d83b017c1a2badb29c3ea9a035#r56613191
|
LGTM, tested build locally, fixes failure in .10 |
BREAKING CHANGE Removed deprecated API from NgZone - `NgZone.overrideOnTurnStart` - `NgZone.overrideOnTurnDone` - `NgZone.overrideOnEventDone` - `NgZone.overrideOnErrorHandler` Rename NgZone API - `NgZone.onTurnStart` => `NgZone.onUnstable` - `NgZone.onTurnDone` => `NgZone.onMicrotaskEmpty` - `NgZone.onEventDone` => `NgZone.onStable` Closes #7345
|
Merging PR #7655 on behalf of @jelbourn to branch presubmit-jelbourn-pr-7655. |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |