@angular/core 12.2.0-next.3 → 12.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v12.2.0-next.3
2
+ * @license Angular v12.2.2
3
3
  * (c) 2010-2021 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v12.2.0-next.3
2
+ * @license Angular v12.2.2
3
3
  * (c) 2010-2021 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -6814,7 +6814,7 @@
6814
6814
  return error[ERROR_ORIGINAL_ERROR];
6815
6815
  }
6816
6816
  function getErrorLogger(error) {
6817
- return error[ERROR_LOGGER] || defaultErrorLogger;
6817
+ return error && error[ERROR_LOGGER] || defaultErrorLogger;
6818
6818
  }
6819
6819
  function defaultErrorLogger(console) {
6820
6820
  var values = [];
@@ -6883,11 +6883,11 @@
6883
6883
  };
6884
6884
  /** @internal */
6885
6885
  ErrorHandler.prototype._findOriginalError = function (error) {
6886
- var e = getOriginalError(error);
6886
+ var e = error && getOriginalError(error);
6887
6887
  while (e && getOriginalError(e)) {
6888
6888
  e = getOriginalError(e);
6889
6889
  }
6890
- return e;
6890
+ return e || null;
6891
6891
  };
6892
6892
  return ErrorHandler;
6893
6893
  }());
@@ -9934,6 +9934,7 @@
9934
9934
  // an error, mark the view as corrupted so we can try to recover.
9935
9935
  if (tView.firstCreatePass) {
9936
9936
  tView.incompleteFirstPass = true;
9937
+ tView.firstCreatePass = false;
9937
9938
  }
9938
9939
  throw error;
9939
9940
  }
@@ -22032,7 +22033,7 @@
22032
22033
  /**
22033
22034
  * @publicApi
22034
22035
  */
22035
- var VERSION = new Version('12.2.0-next.3');
22036
+ var VERSION = new Version('12.2.2');
22036
22037
 
22037
22038
  /**
22038
22039
  * @license
@@ -31477,16 +31478,16 @@
31477
31478
  /**
31478
31479
  * Work out the locale from the potential global properties.
31479
31480
  *
31480
- * * Closure Compiler: use `goog.LOCALE`.
31481
+ * * Closure Compiler: use `goog.getLocale()`.
31481
31482
  * * Ivy enabled: use `$localize.locale`
31482
31483
  */
31483
31484
  function getGlobalLocale() {
31484
31485
  if (typeof ngI18nClosureMode !== 'undefined' && ngI18nClosureMode &&
31485
- typeof goog !== 'undefined' && goog.LOCALE !== 'en') {
31486
- // * The default `goog.LOCALE` value is `en`, while Angular used `en-US`.
31486
+ typeof goog !== 'undefined' && goog.getLocale() !== 'en') {
31487
+ // * The default `goog.getLocale()` value is `en`, while Angular used `en-US`.
31487
31488
  // * In order to preserve backwards compatibility, we use Angular default value over
31488
31489
  // Closure Compiler's one.
31489
- return goog.LOCALE;
31490
+ return goog.getLocale();
31490
31491
  }
31491
31492
  else {
31492
31493
  // KEEP `typeof $localize !== 'undefined' && $localize.locale` IN SYNC WITH THE LOCALIZE