@honeybadger-io/js 4.9.0 → 4.9.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.
@@ -590,16 +590,18 @@ var require$$0 = /*@__PURE__*/getAugmentedNamespace(stackTraceParser_esm);
590
590
  if (!object || !name || !replacement || !(name in object)) {
591
591
  return;
592
592
  }
593
- var original = object[name];
594
- while (original && original.__hb_original) {
595
- original = original.__hb_original;
596
- }
597
593
  try {
594
+ var original = object[name];
595
+ while (original && original.__hb_original) {
596
+ original = original.__hb_original;
597
+ }
598
598
  object[name] = replacement(original);
599
599
  object[name].__hb_original = original;
600
600
  }
601
601
  catch (_e) {
602
- // Ignores errors like this one:
602
+ // Ignores errors where "original" is a restricted object (see #1001)
603
+ // Uncaught Error: Permission denied to access property "__hb_original"
604
+ // Also ignores:
603
605
  // Error: TypeError: Cannot set property onunhandledrejection of [object Object] which has only a getter
604
606
  // User-Agent: Mozilla/5.0 (Linux; Android 10; SAMSUNG SM-G960F) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/12.1 Chrome/79.0.3945.136 Mobile Safari/537.36
605
607
  }
@@ -812,7 +814,7 @@ var store_1 = store;
812
814
  var notifier = {
813
815
  name: 'honeybadger-js',
814
816
  url: 'https://github.com/honeybadger-io/honeybadger-js',
815
- version: '4.9.0'
817
+ version: '4.9.2'
816
818
  };
817
819
  // Split at commas and spaces
818
820
  var TAG_SEPARATOR = /,|\s+/;