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.
package/dist/ponyfill.js CHANGED
@@ -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) :
@@ -3806,10 +3806,16 @@
3806
3806
  var byteLengthSizeFunction = function (chunk) {
3807
3807
  return chunk.byteLength;
3808
3808
  };
3809
- Object.defineProperty(byteLengthSizeFunction, 'name', {
3810
- value: 'size',
3811
- configurable: true
3812
- });
3809
+ try {
3810
+ Object.defineProperty(byteLengthSizeFunction, 'name', {
3811
+ value: 'size',
3812
+ configurable: true
3813
+ });
3814
+ }
3815
+ catch (_a) {
3816
+ // This property is non-configurable in older browsers, so ignore if this throws.
3817
+ // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name#browser_compatibility
3818
+ }
3813
3819
  /**
3814
3820
  * A queuing strategy that counts the number of bytes in each chunk.
3815
3821
  *
@@ -3877,10 +3883,16 @@
3877
3883
  var countSizeFunction = function () {
3878
3884
  return 1;
3879
3885
  };
3880
- Object.defineProperty(countSizeFunction, 'name', {
3881
- value: 'size',
3882
- configurable: true
3883
- });
3886
+ try {
3887
+ Object.defineProperty(countSizeFunction, 'name', {
3888
+ value: 'size',
3889
+ configurable: true
3890
+ });
3891
+ }
3892
+ catch (_a) {
3893
+ // This property is non-configurable in older browsers, so ignore if this throws.
3894
+ // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name#browser_compatibility
3895
+ }
3884
3896
  /**
3885
3897
  * A queuing strategy that counts the number of chunks.
3886
3898
  *