Skip to content

Commit

Permalink
refactor(core): explain what a prolyfill is
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Wiles committed Nov 3, 2017
1 parent 3a86654 commit 0029de6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core/src/zone/ng_zone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ export class NgZone {

constructor({enableLongStackTrace = false}) {
if (typeof Zone == 'undefined') {
// prolyfill = probably a polyfill ie you can not polyfill something that is not a standard
// yet
throw new Error('Angular requires Zone.js prolyfill.');
}

Expand Down

0 comments on commit 0029de6

Please sign in to comment.