@firebase/util 1.10.0 → 1.10.1

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.
@@ -153,6 +153,7 @@ const byteArrayToString = function (bytes) {
153
153
  // We define it as an object literal instead of a class because a class compiled down to es5 can't
154
154
  // be treeshaked. https://github.com/rollup/rollup/issues/1691
155
155
  // Static lookup maps, lazily populated by init_()
156
+ // TODO(dlarocque): Define this as a class, since we no longer target ES5.
156
157
  const base64 = {
157
158
  /**
158
159
  * Maps bytes to characters.
@@ -972,6 +973,8 @@ class FirebaseError extends Error {
972
973
  this.name = ERROR_NAME;
973
974
  // Fix For ES5
974
975
  // https://github.com/Microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work
976
+ // TODO(dlarocque): Replace this with `new.target`: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-2.html#support-for-newtarget
977
+ // which we can now use since we no longer target ES5.
975
978
  Object.setPrototypeOf(this, FirebaseError.prototype);
976
979
  // Maintains proper stack trace for where our error was thrown.
977
980
  // Only available on V8.