core-js-bundle 3.6.4 → 3.6.5

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/index.js CHANGED
@@ -7395,7 +7395,13 @@ if (!set || !clear) {
7395
7395
  defer = bind(port.postMessage, port, 1);
7396
7396
  // Browsers with postMessage, skip WebWorkers
7397
7397
  // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
7398
- } else if (global.addEventListener && typeof postMessage == 'function' && !global.importScripts && !fails(post)) {
7398
+ } else if (
7399
+ global.addEventListener &&
7400
+ typeof postMessage == 'function' &&
7401
+ !global.importScripts &&
7402
+ !fails(post) &&
7403
+ location.protocol !== 'file:'
7404
+ ) {
7399
7405
  defer = post;
7400
7406
  global.addEventListener('message', listener, false);
7401
7407
  // IE8-
@@ -15154,7 +15160,7 @@ var INVALID_HOST = 'Invalid host';
15154
15160
  var INVALID_PORT = 'Invalid port';
15155
15161
 
15156
15162
  var ALPHA = /[A-Za-z]/;
15157
- var ALPHANUMERIC = /[\d+\-.A-Za-z]/;
15163
+ var ALPHANUMERIC = /[\d+-.A-Za-z]/;
15158
15164
  var DIGIT = /\d/;
15159
15165
  var HEX_START = /^(0x|0X)/;
15160
15166
  var OCT = /^[0-7]+$/;