core-js 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
|
|
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 =
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
};
|
package/internals/shared.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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 '
|
|
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;
|