web-streams-polyfill 3.2.0 → 3.2.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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * web-streams-polyfill v3.2.0
2
+ * web-streams-polyfill v3.2.1
3
3
  */
4
4
  (function (global, factory) {
5
5
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
@@ -3713,10 +3713,16 @@
3713
3713
  const byteLengthSizeFunction = (chunk) => {
3714
3714
  return chunk.byteLength;
3715
3715
  };
3716
- Object.defineProperty(byteLengthSizeFunction, 'name', {
3717
- value: 'size',
3718
- configurable: true
3719
- });
3716
+ try {
3717
+ Object.defineProperty(byteLengthSizeFunction, 'name', {
3718
+ value: 'size',
3719
+ configurable: true
3720
+ });
3721
+ }
3722
+ catch (_a) {
3723
+ // This property is non-configurable in older browsers, so ignore if this throws.
3724
+ // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name#browser_compatibility
3725
+ }
3720
3726
  /**
3721
3727
  * A queuing strategy that counts the number of bytes in each chunk.
3722
3728
  *
@@ -3775,10 +3781,16 @@
3775
3781
  const countSizeFunction = () => {
3776
3782
  return 1;
3777
3783
  };
3778
- Object.defineProperty(countSizeFunction, 'name', {
3779
- value: 'size',
3780
- configurable: true
3781
- });
3784
+ try {
3785
+ Object.defineProperty(countSizeFunction, 'name', {
3786
+ value: 'size',
3787
+ configurable: true
3788
+ });
3789
+ }
3790
+ catch (_a) {
3791
+ // This property is non-configurable in older browsers, so ignore if this throws.
3792
+ // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name#browser_compatibility
3793
+ }
3782
3794
  /**
3783
3795
  * A queuing strategy that counts the number of chunks.
3784
3796
  *