core-js-pure 3.25.3 → 3.25.4

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,14 +1,16 @@
1
1
  var NATIVE_BIND = require('../internals/function-bind-native');
2
2
 
3
- var FunctionPrototype = Function.prototype;
3
+ var $Function = Function;
4
+ var FunctionPrototype = $Function.prototype;
4
5
  var bind = FunctionPrototype.bind;
5
6
  var call = FunctionPrototype.call;
6
7
  var uncurryThis = NATIVE_BIND && bind.bind(call, call);
7
8
 
8
- module.exports = NATIVE_BIND ? function (fn) {
9
- return fn && uncurryThis(fn);
10
- } : function (fn) {
11
- return fn && function () {
9
+ module.exports = function (fn) {
10
+ // Nashorn bug:
11
+ // https://github.com/zloirock/core-js/issues/1128
12
+ // https://github.com/zloirock/core-js/issues/1130
13
+ return fn instanceof $Function ? NATIVE_BIND ? uncurryThis(fn) : function () {
12
14
  return call.apply(fn, arguments);
13
- };
15
+ } : undefined;
14
16
  };
@@ -4,9 +4,9 @@ var store = require('../internals/shared-store');
4
4
  (module.exports = function (key, value) {
5
5
  return store[key] || (store[key] = value !== undefined ? value : {});
6
6
  })('versions', []).push({
7
- version: '3.25.3',
7
+ version: '3.25.4',
8
8
  mode: IS_PURE ? 'pure' : 'global',
9
9
  copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
10
- license: 'https://github.com/zloirock/core-js/blob/v3.25.3/LICENSE',
10
+ license: 'https://github.com/zloirock/core-js/blob/v3.25.4/LICENSE',
11
11
  source: 'https://github.com/zloirock/core-js'
12
12
  });
@@ -371,9 +371,13 @@ var structuredCloneInternal = function (value, map) {
371
371
  } catch (error) {
372
372
  throwUnpolyfillable(type);
373
373
  } break;
374
+ case 'CropTarget':
374
375
  case 'CryptoKey':
375
- case 'GPUCompilationMessage':
376
+ case 'FileSystemDirectoryHandle':
377
+ case 'FileSystemFileHandle':
378
+ case 'FileSystemHandle':
376
379
  case 'GPUCompilationInfo':
380
+ case 'GPUCompilationMessage':
377
381
  case 'ImageBitmap':
378
382
  case 'RTCCertificate':
379
383
  case 'WebAssembly.Module':
@@ -472,6 +476,7 @@ var tryToTransfer = function (rawTransfer, map) {
472
476
  } catch (error) { /* empty */ }
473
477
  break;
474
478
  case 'ArrayBuffer':
479
+ case 'MediaSourceHandle':
475
480
  case 'MessagePort':
476
481
  case 'OffscreenCanvas':
477
482
  case 'ReadableStream':
@@ -485,6 +490,8 @@ var tryToTransfer = function (rawTransfer, map) {
485
490
  }
486
491
  };
487
492
 
493
+ // `structuredClone` method
494
+ // https://html.spec.whatwg.org/multipage/structured-data.html#dom-structuredclone
488
495
  $({ global: true, enumerable: true, sham: !PROPER_TRANSFER, forced: FORCED_REPLACEMENT }, {
489
496
  structuredClone: function structuredClone(value /* , { transfer } */) {
490
497
  var options = validateArgumentsLength(arguments.length, 1) > 1 && !isNullOrUndefined(arguments[1]) ? anObject(arguments[1]) : undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "core-js-pure",
3
3
  "description": "Standard library",
4
- "version": "3.25.3",
4
+ "version": "3.25.4",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/zloirock/core-js.git"