core-js-pure 3.27.0 → 3.27.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.
- package/LICENSE +1 -1
- package/actual/async-iterator/from.js +11 -0
- package/actual/disposable-stack/constructor.js +2 -0
- package/actual/disposable-stack/index.js +2 -0
- package/actual/iterator/from.js +14 -0
- package/actual/suppressed-error.js +1 -0
- package/full/async-disposable-stack/constructor.js +3 -0
- package/full/async-disposable-stack/index.js +3 -0
- package/internals/async-iterator-create-proxy.js +8 -17
- package/internals/collection-weak.js +2 -2
- package/internals/engine-is-ios-pebble.js +1 -2
- package/internals/engine-is-node.js +1 -2
- package/internals/engine-user-agent.js +1 -3
- package/internals/error-stack-install.js +13 -0
- package/internals/export.js +1 -1
- package/internals/get-set-record.js +2 -1
- package/internals/host-report-errors.js +3 -5
- package/internals/is-big-int-array.js +2 -4
- package/internals/iterator-create-proxy.js +9 -18
- package/internals/microtask.js +20 -25
- package/internals/queue.js +4 -3
- package/internals/set-is-disjoint-from.js +8 -8
- package/internals/set-is-superset-of.js +4 -2
- package/internals/shared.js +3 -3
- package/internals/string-cooked.js +3 -0
- package/internals/string-punycode-to-ascii.js +0 -1
- package/internals/task.js +8 -8
- package/internals/well-known-symbol.js +6 -12
- package/internals/wrap-error-constructor-with-cause.js +2 -3
- package/modules/es.aggregate-error.constructor.js +3 -5
- package/modules/es.array.concat.js +1 -3
- package/modules/es.array.index-of.js +2 -2
- package/modules/es.array.join.js +2 -2
- package/modules/es.array.push.js +5 -3
- package/modules/es.array.reduce-right.js +2 -2
- package/modules/es.array.reduce.js +2 -2
- package/modules/es.array.unshift.js +5 -3
- package/modules/es.date.get-year.js +1 -0
- package/modules/es.error.cause.js +1 -0
- package/modules/es.math.asinh.js +3 -1
- package/modules/es.math.atanh.js +3 -1
- package/modules/es.math.cosh.js +3 -1
- package/modules/es.math.hypot.js +2 -2
- package/modules/es.number.to-exponential.js +14 -11
- package/modules/es.object.get-own-property-descriptor.js +1 -2
- package/modules/es.object.is-frozen.js +3 -2
- package/modules/es.object.is-sealed.js +3 -2
- package/modules/es.promise.all-settled.js +2 -1
- package/modules/es.promise.any.js +2 -1
- package/modules/es.string.raw.js +2 -1
- package/modules/es.string.substr.js +1 -1
- package/modules/es.weak-map.constructor.js +45 -4
- package/modules/esnext.suppressed-error.constructor.js +3 -5
- package/modules/web.atob.js +5 -2
- package/modules/web.btoa.js +5 -2
- package/modules/web.dom-exception.constructor.js +4 -0
- package/modules/web.dom-exception.to-string-tag.js +1 -0
- package/package.json +1 -1
- package/postinstall.js +1 -1
package/LICENSE
CHANGED
|
@@ -3,7 +3,18 @@ require('../../modules/es.object.to-string');
|
|
|
3
3
|
require('../../modules/es.promise');
|
|
4
4
|
require('../../modules/es.string.iterator');
|
|
5
5
|
require('../../modules/esnext.async-iterator.constructor');
|
|
6
|
+
require('../../modules/esnext.async-iterator.drop');
|
|
7
|
+
require('../../modules/esnext.async-iterator.every');
|
|
8
|
+
require('../../modules/esnext.async-iterator.filter');
|
|
9
|
+
require('../../modules/esnext.async-iterator.find');
|
|
10
|
+
require('../../modules/esnext.async-iterator.flat-map');
|
|
11
|
+
require('../../modules/esnext.async-iterator.for-each');
|
|
6
12
|
require('../../modules/esnext.async-iterator.from');
|
|
13
|
+
require('../../modules/esnext.async-iterator.map');
|
|
14
|
+
require('../../modules/esnext.async-iterator.reduce');
|
|
15
|
+
require('../../modules/esnext.async-iterator.some');
|
|
16
|
+
require('../../modules/esnext.async-iterator.take');
|
|
17
|
+
require('../../modules/esnext.async-iterator.to-array');
|
|
7
18
|
require('../../modules/web.dom-collections.iterator');
|
|
8
19
|
|
|
9
20
|
var path = require('../../internals/path');
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
require('../../modules/es.error.cause');
|
|
2
|
+
require('../../modules/es.error.to-string');
|
|
2
3
|
require('../../modules/es.object.to-string');
|
|
3
4
|
require('../../modules/esnext.suppressed-error.constructor');
|
|
4
5
|
require('../../modules/esnext.disposable-stack.constructor');
|
|
6
|
+
require('../../modules/esnext.iterator.dispose');
|
|
5
7
|
var path = require('../../internals/path');
|
|
6
8
|
|
|
7
9
|
module.exports = path.DisposableStack;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
require('../../modules/es.error.cause');
|
|
2
|
+
require('../../modules/es.error.to-string');
|
|
2
3
|
require('../../modules/es.object.to-string');
|
|
3
4
|
require('../../modules/esnext.suppressed-error.constructor');
|
|
4
5
|
require('../../modules/esnext.disposable-stack.constructor');
|
|
6
|
+
require('../../modules/esnext.iterator.dispose');
|
|
5
7
|
var path = require('../../internals/path');
|
|
6
8
|
|
|
7
9
|
module.exports = path.DisposableStack;
|
package/actual/iterator/from.js
CHANGED
|
@@ -1,8 +1,22 @@
|
|
|
1
1
|
require('../../modules/es.array.iterator');
|
|
2
2
|
require('../../modules/es.object.to-string');
|
|
3
|
+
require('../../modules/es.promise');
|
|
3
4
|
require('../../modules/es.string.iterator');
|
|
4
5
|
require('../../modules/esnext.iterator.constructor');
|
|
6
|
+
require('../../modules/esnext.iterator.dispose');
|
|
7
|
+
require('../../modules/esnext.iterator.drop');
|
|
8
|
+
require('../../modules/esnext.iterator.every');
|
|
9
|
+
require('../../modules/esnext.iterator.filter');
|
|
10
|
+
require('../../modules/esnext.iterator.find');
|
|
11
|
+
require('../../modules/esnext.iterator.flat-map');
|
|
12
|
+
require('../../modules/esnext.iterator.for-each');
|
|
5
13
|
require('../../modules/esnext.iterator.from');
|
|
14
|
+
require('../../modules/esnext.iterator.map');
|
|
15
|
+
require('../../modules/esnext.iterator.reduce');
|
|
16
|
+
require('../../modules/esnext.iterator.some');
|
|
17
|
+
require('../../modules/esnext.iterator.take');
|
|
18
|
+
require('../../modules/esnext.iterator.to-array');
|
|
19
|
+
require('../../modules/esnext.iterator.to-async');
|
|
6
20
|
require('../../modules/web.dom-collections.iterator');
|
|
7
21
|
|
|
8
22
|
var path = require('../../internals/path');
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
require('../../modules/es.error.cause');
|
|
2
|
+
require('../../modules/es.error.to-string');
|
|
2
3
|
require('../../modules/es.object.to-string');
|
|
3
4
|
require('../../modules/es.promise');
|
|
4
5
|
require('../../modules/esnext.suppressed-error.constructor');
|
|
5
6
|
require('../../modules/esnext.async-disposable-stack.constructor');
|
|
7
|
+
require('../../modules/esnext.async-iterator.async-dispose');
|
|
8
|
+
require('../../modules/esnext.iterator.dispose');
|
|
6
9
|
var path = require('../../internals/path');
|
|
7
10
|
|
|
8
11
|
module.exports = path.AsyncDisposableStack;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
require('../../modules/es.error.cause');
|
|
2
|
+
require('../../modules/es.error.to-string');
|
|
2
3
|
require('../../modules/es.object.to-string');
|
|
3
4
|
require('../../modules/es.promise');
|
|
4
5
|
require('../../modules/esnext.suppressed-error.constructor');
|
|
5
6
|
require('../../modules/esnext.async-disposable-stack.constructor');
|
|
7
|
+
require('../../modules/esnext.async-iterator.async-dispose');
|
|
8
|
+
require('../../modules/esnext.iterator.dispose');
|
|
6
9
|
var path = require('../../internals/path');
|
|
7
10
|
|
|
8
11
|
module.exports = path.AsyncDisposableStack;
|
|
@@ -15,17 +15,14 @@ var iteratorClose = require('../internals/iterator-close');
|
|
|
15
15
|
|
|
16
16
|
var Promise = getBuiltIn('Promise');
|
|
17
17
|
|
|
18
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
18
19
|
var ASYNC_ITERATOR_HELPER = 'AsyncIteratorHelper';
|
|
19
20
|
var WRAP_FOR_VALID_ASYNC_ITERATOR = 'WrapForValidAsyncIterator';
|
|
20
21
|
var setInternalState = InternalStateModule.set;
|
|
21
22
|
|
|
22
|
-
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
23
|
-
|
|
24
23
|
var createAsyncIteratorProxyPrototype = function (IS_ITERATOR) {
|
|
25
24
|
var IS_GENERATOR = !IS_ITERATOR;
|
|
26
|
-
var
|
|
27
|
-
|
|
28
|
-
var getInternalState = InternalStateModule.getterFor(ASYNC_ITERATOR_PROXY);
|
|
25
|
+
var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ASYNC_ITERATOR : ASYNC_ITERATOR_HELPER);
|
|
29
26
|
|
|
30
27
|
var getStateOrEarlyExit = function (that) {
|
|
31
28
|
var stateCompletion = perform(function () {
|
|
@@ -55,7 +52,7 @@ var createAsyncIteratorProxyPrototype = function (IS_ITERATOR) {
|
|
|
55
52
|
return state.awaiting ? state.awaiting = state.awaiting.then(task, task) : task();
|
|
56
53
|
};
|
|
57
54
|
|
|
58
|
-
|
|
55
|
+
return defineBuiltIns(create(AsyncIteratorPrototype), {
|
|
59
56
|
next: function next() {
|
|
60
57
|
var stateCompletion = getStateOrEarlyExit(this);
|
|
61
58
|
var exit = stateCompletion.exit;
|
|
@@ -82,7 +79,7 @@ var createAsyncIteratorProxyPrototype = function (IS_ITERATOR) {
|
|
|
82
79
|
var returnMethod, result;
|
|
83
80
|
var completion = perform(function () {
|
|
84
81
|
if (state.inner) try {
|
|
85
|
-
iteratorClose(state.inner.iterator, '
|
|
82
|
+
iteratorClose(state.inner.iterator, 'normal');
|
|
86
83
|
} catch (error) {
|
|
87
84
|
return iteratorClose(iterator, 'throw', error);
|
|
88
85
|
}
|
|
@@ -103,26 +100,20 @@ var createAsyncIteratorProxyPrototype = function (IS_ITERATOR) {
|
|
|
103
100
|
});
|
|
104
101
|
}
|
|
105
102
|
});
|
|
106
|
-
|
|
107
|
-
if (IS_GENERATOR) {
|
|
108
|
-
createNonEnumerableProperty(AsyncIteratorProxyPrototype, TO_STRING_TAG, 'Async Iterator Helper');
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
return AsyncIteratorProxyPrototype;
|
|
112
103
|
};
|
|
113
104
|
|
|
114
|
-
var AsyncIteratorHelperPrototype = createAsyncIteratorProxyPrototype(false);
|
|
115
105
|
var WrapForValidAsyncIteratorPrototype = createAsyncIteratorProxyPrototype(true);
|
|
106
|
+
var AsyncIteratorHelperPrototype = createAsyncIteratorProxyPrototype(false);
|
|
116
107
|
|
|
117
|
-
|
|
118
|
-
var ASYNC_ITERATOR_PROXY = IS_ITERATOR ? WRAP_FOR_VALID_ASYNC_ITERATOR : ASYNC_ITERATOR_HELPER;
|
|
108
|
+
createNonEnumerableProperty(AsyncIteratorHelperPrototype, TO_STRING_TAG, 'Async Iterator Helper');
|
|
119
109
|
|
|
110
|
+
module.exports = function (nextHandler, IS_ITERATOR) {
|
|
120
111
|
var AsyncIteratorProxy = function AsyncIterator(record, state) {
|
|
121
112
|
if (state) {
|
|
122
113
|
state.iterator = record.iterator;
|
|
123
114
|
state.next = record.next;
|
|
124
115
|
} else state = record;
|
|
125
|
-
state.type =
|
|
116
|
+
state.type = IS_ITERATOR ? WRAP_FOR_VALID_ASYNC_ITERATOR : ASYNC_ITERATOR_HELPER;
|
|
126
117
|
state.nextHandler = nextHandler;
|
|
127
118
|
state.counter = 0;
|
|
128
119
|
state.done = false;
|
|
@@ -19,8 +19,8 @@ var splice = uncurryThis([].splice);
|
|
|
19
19
|
var id = 0;
|
|
20
20
|
|
|
21
21
|
// fallback for uncaught frozen keys
|
|
22
|
-
var uncaughtFrozenStore = function (
|
|
23
|
-
return
|
|
22
|
+
var uncaughtFrozenStore = function (state) {
|
|
23
|
+
return state.frozen || (state.frozen = new UncaughtFrozenStore());
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
var UncaughtFrozenStore = function () {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
var userAgent = require('../internals/engine-user-agent');
|
|
2
|
-
var global = require('../internals/global');
|
|
3
2
|
|
|
4
|
-
module.exports = /ipad|iphone|ipod/i.test(userAgent) &&
|
|
3
|
+
module.exports = /ipad|iphone|ipod/i.test(userAgent) && typeof Pebble != 'undefined';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
|
|
2
|
+
var clearErrorStack = require('../internals/error-stack-clear');
|
|
3
|
+
var ERROR_STACK_INSTALLABLE = require('../internals/error-stack-installable');
|
|
4
|
+
|
|
5
|
+
// non-standard V8
|
|
6
|
+
var captureStackTrace = Error.captureStackTrace;
|
|
7
|
+
|
|
8
|
+
module.exports = function (error, C, stack, dropEntries) {
|
|
9
|
+
if (ERROR_STACK_INSTALLABLE) {
|
|
10
|
+
if (captureStackTrace) captureStackTrace(error, C);
|
|
11
|
+
else createNonEnumerableProperty(error, 'stack', clearErrorStack(stack, dropEntries));
|
|
12
|
+
}
|
|
13
|
+
};
|
package/internals/export.js
CHANGED
|
@@ -70,7 +70,7 @@ module.exports = function (options, source) {
|
|
|
70
70
|
|
|
71
71
|
if (USE_NATIVE && typeof targetProperty == typeof sourceProperty) continue;
|
|
72
72
|
|
|
73
|
-
// bind
|
|
73
|
+
// bind methods to global for calling from export context
|
|
74
74
|
if (options.bind && USE_NATIVE) resultProperty = bind(sourceProperty, global);
|
|
75
75
|
// wrap global constructors for prevent changs in this version
|
|
76
76
|
else if (options.wrap && USE_NATIVE) resultProperty = wrapConstructor(sourceProperty);
|
|
@@ -4,6 +4,7 @@ var call = require('../internals/function-call');
|
|
|
4
4
|
var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');
|
|
5
5
|
|
|
6
6
|
var $TypeError = TypeError;
|
|
7
|
+
var max = Math.max;
|
|
7
8
|
|
|
8
9
|
var SetRecord = function (set, size, has, keys) {
|
|
9
10
|
this.set = set;
|
|
@@ -31,7 +32,7 @@ module.exports = function (obj) {
|
|
|
31
32
|
if (numSize != numSize) throw $TypeError('Invalid size');
|
|
32
33
|
return new SetRecord(
|
|
33
34
|
obj,
|
|
34
|
-
toIntegerOrInfinity(numSize),
|
|
35
|
+
max(toIntegerOrInfinity(numSize), 0),
|
|
35
36
|
aCallable(obj.has),
|
|
36
37
|
aCallable(obj.keys)
|
|
37
38
|
);
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
var global = require('../internals/global');
|
|
2
|
-
|
|
3
1
|
module.exports = function (a, b) {
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
try {
|
|
3
|
+
// eslint-disable-next-line no-console -- safe
|
|
6
4
|
arguments.length == 1 ? console.error(a) : console.error(a, b);
|
|
7
|
-
}
|
|
5
|
+
} catch (error) { /* empty */ }
|
|
8
6
|
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
var classof = require('../internals/classof');
|
|
2
|
-
var uncurryThis = require('../internals/function-uncurry-this');
|
|
3
|
-
|
|
4
|
-
var slice = uncurryThis(''.slice);
|
|
5
2
|
|
|
6
3
|
module.exports = function (it) {
|
|
7
|
-
|
|
4
|
+
var klass = classof(it);
|
|
5
|
+
return klass == 'BigInt64Array' || klass == 'BigUint64Array';
|
|
8
6
|
};
|
|
@@ -10,18 +10,15 @@ var IteratorPrototype = require('../internals/iterators-core').IteratorPrototype
|
|
|
10
10
|
var createIterResultObject = require('../internals/create-iter-result-object');
|
|
11
11
|
var iteratorClose = require('../internals/iterator-close');
|
|
12
12
|
|
|
13
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
13
14
|
var ITERATOR_HELPER = 'IteratorHelper';
|
|
14
15
|
var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator';
|
|
15
16
|
var setInternalState = InternalStateModule.set;
|
|
16
17
|
|
|
17
|
-
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
|
18
|
-
|
|
19
18
|
var createIteratorProxyPrototype = function (IS_ITERATOR) {
|
|
20
|
-
var
|
|
19
|
+
var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER);
|
|
21
20
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
var IteratorProxyPrototype = defineBuiltIns(create(IteratorPrototype), {
|
|
21
|
+
return defineBuiltIns(create(IteratorPrototype), {
|
|
25
22
|
next: function next() {
|
|
26
23
|
var state = getInternalState(this);
|
|
27
24
|
// for simplification:
|
|
@@ -45,34 +42,28 @@ var createIteratorProxyPrototype = function (IS_ITERATOR) {
|
|
|
45
42
|
return returnMethod ? call(returnMethod, iterator) : createIterResultObject(undefined, true);
|
|
46
43
|
}
|
|
47
44
|
if (state.inner) try {
|
|
48
|
-
iteratorClose(state.inner.iterator, '
|
|
45
|
+
iteratorClose(state.inner.iterator, 'normal');
|
|
49
46
|
} catch (error) {
|
|
50
47
|
return iteratorClose(iterator, 'throw', error);
|
|
51
48
|
}
|
|
52
|
-
iteratorClose(iterator, '
|
|
49
|
+
iteratorClose(iterator, 'normal');
|
|
53
50
|
return createIterResultObject(undefined, true);
|
|
54
51
|
}
|
|
55
52
|
});
|
|
56
|
-
|
|
57
|
-
if (!IS_ITERATOR) {
|
|
58
|
-
createNonEnumerableProperty(IteratorProxyPrototype, TO_STRING_TAG, 'Iterator Helper');
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
return IteratorProxyPrototype;
|
|
62
53
|
};
|
|
63
54
|
|
|
64
|
-
var IteratorHelperPrototype = createIteratorProxyPrototype(false);
|
|
65
55
|
var WrapForValidIteratorPrototype = createIteratorProxyPrototype(true);
|
|
56
|
+
var IteratorHelperPrototype = createIteratorProxyPrototype(false);
|
|
66
57
|
|
|
67
|
-
|
|
68
|
-
var ITERATOR_PROXY = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER;
|
|
58
|
+
createNonEnumerableProperty(IteratorHelperPrototype, TO_STRING_TAG, 'Iterator Helper');
|
|
69
59
|
|
|
60
|
+
module.exports = function (nextHandler, IS_ITERATOR) {
|
|
70
61
|
var IteratorProxy = function Iterator(record, state) {
|
|
71
62
|
if (state) {
|
|
72
63
|
state.iterator = record.iterator;
|
|
73
64
|
state.next = record.next;
|
|
74
65
|
} else state = record;
|
|
75
|
-
state.type =
|
|
66
|
+
state.type = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER;
|
|
76
67
|
state.nextHandler = nextHandler;
|
|
77
68
|
state.counter = 0;
|
|
78
69
|
state.done = false;
|
package/internals/microtask.js
CHANGED
|
@@ -2,6 +2,7 @@ var global = require('../internals/global');
|
|
|
2
2
|
var bind = require('../internals/function-bind-context');
|
|
3
3
|
var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;
|
|
4
4
|
var macrotask = require('../internals/task').set;
|
|
5
|
+
var Queue = require('../internals/queue');
|
|
5
6
|
var IS_IOS = require('../internals/engine-is-ios');
|
|
6
7
|
var IS_IOS_PEBBLE = require('../internals/engine-is-ios-pebble');
|
|
7
8
|
var IS_WEBOS_WEBKIT = require('../internals/engine-is-webos-webkit');
|
|
@@ -13,26 +14,22 @@ var process = global.process;
|
|
|
13
14
|
var Promise = global.Promise;
|
|
14
15
|
// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
|
|
15
16
|
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');
|
|
16
|
-
var
|
|
17
|
-
|
|
18
|
-
var flush, head, last, notify, toggle, node, promise, then;
|
|
17
|
+
var microtask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
|
|
18
|
+
var notify, toggle, node, promise, then;
|
|
19
19
|
|
|
20
20
|
// modern engines have queueMicrotask method
|
|
21
|
-
if (!
|
|
22
|
-
|
|
21
|
+
if (!microtask) {
|
|
22
|
+
var queue = new Queue();
|
|
23
|
+
|
|
24
|
+
var flush = function () {
|
|
23
25
|
var parent, fn;
|
|
24
26
|
if (IS_NODE && (parent = process.domain)) parent.exit();
|
|
25
|
-
while (
|
|
26
|
-
fn
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
if (head) notify();
|
|
32
|
-
else last = undefined;
|
|
33
|
-
throw error;
|
|
34
|
-
}
|
|
35
|
-
} last = undefined;
|
|
27
|
+
while (fn = queue.get()) try {
|
|
28
|
+
fn();
|
|
29
|
+
} catch (error) {
|
|
30
|
+
if (queue.head) notify();
|
|
31
|
+
throw error;
|
|
32
|
+
}
|
|
36
33
|
if (parent) parent.enter();
|
|
37
34
|
};
|
|
38
35
|
|
|
@@ -67,19 +64,17 @@ if (!queueMicrotask) {
|
|
|
67
64
|
// - onreadystatechange
|
|
68
65
|
// - setTimeout
|
|
69
66
|
} else {
|
|
70
|
-
//
|
|
67
|
+
// `webpack` dev server bug on IE global methods - use bind(fn, global)
|
|
71
68
|
macrotask = bind(macrotask, global);
|
|
72
69
|
notify = function () {
|
|
73
70
|
macrotask(flush);
|
|
74
71
|
};
|
|
75
72
|
}
|
|
73
|
+
|
|
74
|
+
microtask = function (fn) {
|
|
75
|
+
if (!queue.head) notify();
|
|
76
|
+
queue.add(fn);
|
|
77
|
+
};
|
|
76
78
|
}
|
|
77
79
|
|
|
78
|
-
module.exports =
|
|
79
|
-
var task = { fn: fn, next: undefined };
|
|
80
|
-
if (last) last.next = task;
|
|
81
|
-
if (!head) {
|
|
82
|
-
head = task;
|
|
83
|
-
notify();
|
|
84
|
-
} last = task;
|
|
85
|
-
};
|
|
80
|
+
module.exports = microtask;
|
package/internals/queue.js
CHANGED
|
@@ -6,15 +6,16 @@ var Queue = function () {
|
|
|
6
6
|
Queue.prototype = {
|
|
7
7
|
add: function (item) {
|
|
8
8
|
var entry = { item: item, next: null };
|
|
9
|
-
|
|
9
|
+
var tail = this.tail;
|
|
10
|
+
if (tail) tail.next = entry;
|
|
10
11
|
else this.head = entry;
|
|
11
12
|
this.tail = entry;
|
|
12
13
|
},
|
|
13
14
|
get: function () {
|
|
14
15
|
var entry = this.head;
|
|
15
16
|
if (entry) {
|
|
16
|
-
this.head = entry.next;
|
|
17
|
-
if (
|
|
17
|
+
var next = this.head = entry.next;
|
|
18
|
+
if (next === null) this.tail = null;
|
|
18
19
|
return entry.item;
|
|
19
20
|
}
|
|
20
21
|
}
|
|
@@ -5,18 +5,18 @@ var size = require('../internals/set-size');
|
|
|
5
5
|
var getSetRecord = require('../internals/get-set-record');
|
|
6
6
|
var iterateSet = require('../internals/set-iterate');
|
|
7
7
|
var iterateSimple = require('../internals/iterate-simple');
|
|
8
|
+
var iteratorClose = require('../internals/iterator-close');
|
|
8
9
|
|
|
9
10
|
// `Set.prototype.isDisjointFrom` method
|
|
10
11
|
// https://tc39.github.io/proposal-set-methods/#Set.prototype.isDisjointFrom
|
|
11
12
|
module.exports = function isDisjointFrom(other) {
|
|
12
13
|
var O = aSet(this);
|
|
13
14
|
var otherRec = getSetRecord(other);
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
);
|
|
15
|
+
if (size(O) <= otherRec.size) return iterateSet(O, function (e) {
|
|
16
|
+
if (otherRec.includes(e)) return false;
|
|
17
|
+
}, true) !== false;
|
|
18
|
+
var iterator = otherRec.getIterator();
|
|
19
|
+
return iterateSimple(iterator, function (e) {
|
|
20
|
+
if (has(O, e)) return iteratorClose(iterator, 'normal', false);
|
|
21
|
+
}) !== false;
|
|
22
22
|
};
|
|
@@ -4,6 +4,7 @@ var has = require('../internals/set-helpers').has;
|
|
|
4
4
|
var size = require('../internals/set-size');
|
|
5
5
|
var getSetRecord = require('../internals/get-set-record');
|
|
6
6
|
var iterateSimple = require('../internals/iterate-simple');
|
|
7
|
+
var iteratorClose = require('../internals/iterator-close');
|
|
7
8
|
|
|
8
9
|
// `Set.prototype.isSupersetOf` method
|
|
9
10
|
// https://tc39.github.io/proposal-set-methods/#Set.prototype.isSupersetOf
|
|
@@ -11,7 +12,8 @@ module.exports = function isSupersetOf(other) {
|
|
|
11
12
|
var O = aSet(this);
|
|
12
13
|
var otherRec = getSetRecord(other);
|
|
13
14
|
if (size(O) < otherRec.size) return false;
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
var iterator = otherRec.getIterator();
|
|
16
|
+
return iterateSimple(iterator, function (e) {
|
|
17
|
+
if (!has(O, e)) return iteratorClose(iterator, 'normal', false);
|
|
16
18
|
}) !== false;
|
|
17
19
|
};
|
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.27.
|
|
7
|
+
version: '3.27.2',
|
|
8
8
|
mode: IS_PURE ? 'pure' : 'global',
|
|
9
|
-
copyright: '© 2014-
|
|
10
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.27.
|
|
9
|
+
copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
|
|
10
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.27.2/LICENSE',
|
|
11
11
|
source: 'https://github.com/zloirock/core-js'
|
|
12
12
|
});
|
|
@@ -7,9 +7,12 @@ var $TypeError = TypeError;
|
|
|
7
7
|
var push = uncurryThis([].push);
|
|
8
8
|
var join = uncurryThis([].join);
|
|
9
9
|
|
|
10
|
+
// `String.cooked` method
|
|
11
|
+
// https://tc39.es/proposal-string-cooked/
|
|
10
12
|
module.exports = function cooked(template /* , ...substitutions */) {
|
|
11
13
|
var cookedTemplate = toIndexedObject(template);
|
|
12
14
|
var literalSegments = lengthOfArrayLike(cookedTemplate);
|
|
15
|
+
if (!literalSegments) return '';
|
|
13
16
|
var argumentsLength = arguments.length;
|
|
14
17
|
var elements = [];
|
|
15
18
|
var i = 0;
|
package/internals/task.js
CHANGED
|
@@ -23,10 +23,10 @@ var queue = {};
|
|
|
23
23
|
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
24
24
|
var $location, defer, channel, port;
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
fails(function () {
|
|
27
27
|
// Deno throws a ReferenceError on `location` access without `--location` flag
|
|
28
28
|
$location = global.location;
|
|
29
|
-
}
|
|
29
|
+
});
|
|
30
30
|
|
|
31
31
|
var run = function (id) {
|
|
32
32
|
if (hasOwn(queue, id)) {
|
|
@@ -42,11 +42,11 @@ var runner = function (id) {
|
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
44
|
|
|
45
|
-
var
|
|
45
|
+
var eventListener = function (event) {
|
|
46
46
|
run(event.data);
|
|
47
47
|
};
|
|
48
48
|
|
|
49
|
-
var
|
|
49
|
+
var globalPostMessageDefer = function (id) {
|
|
50
50
|
// old engines have not location.origin
|
|
51
51
|
global.postMessage(String(id), $location.protocol + '//' + $location.host);
|
|
52
52
|
};
|
|
@@ -81,7 +81,7 @@ if (!set || !clear) {
|
|
|
81
81
|
} else if (MessageChannel && !IS_IOS) {
|
|
82
82
|
channel = new MessageChannel();
|
|
83
83
|
port = channel.port2;
|
|
84
|
-
channel.port1.onmessage =
|
|
84
|
+
channel.port1.onmessage = eventListener;
|
|
85
85
|
defer = bind(port.postMessage, port);
|
|
86
86
|
// Browsers with postMessage, skip WebWorkers
|
|
87
87
|
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
|
@@ -90,10 +90,10 @@ if (!set || !clear) {
|
|
|
90
90
|
isCallable(global.postMessage) &&
|
|
91
91
|
!global.importScripts &&
|
|
92
92
|
$location && $location.protocol !== 'file:' &&
|
|
93
|
-
!fails(
|
|
93
|
+
!fails(globalPostMessageDefer)
|
|
94
94
|
) {
|
|
95
|
-
defer =
|
|
96
|
-
global.addEventListener('message',
|
|
95
|
+
defer = globalPostMessageDefer;
|
|
96
|
+
global.addEventListener('message', eventListener, false);
|
|
97
97
|
// IE8-
|
|
98
98
|
} else if (ONREADYSTATECHANGE in createElement('script')) {
|
|
99
99
|
defer = function (id) {
|
|
@@ -5,20 +5,14 @@ var uid = require('../internals/uid');
|
|
|
5
5
|
var NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');
|
|
6
6
|
var USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');
|
|
7
7
|
|
|
8
|
-
var WellKnownSymbolsStore = shared('wks');
|
|
9
8
|
var Symbol = global.Symbol;
|
|
10
|
-
var
|
|
11
|
-
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;
|
|
9
|
+
var WellKnownSymbolsStore = shared('wks');
|
|
10
|
+
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;
|
|
12
11
|
|
|
13
12
|
module.exports = function (name) {
|
|
14
|
-
if (!hasOwn(WellKnownSymbolsStore, name)
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} else if (USE_SYMBOL_AS_UID && symbolFor) {
|
|
19
|
-
WellKnownSymbolsStore[name] = symbolFor(description);
|
|
20
|
-
} else {
|
|
21
|
-
WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
|
|
22
|
-
}
|
|
13
|
+
if (!hasOwn(WellKnownSymbolsStore, name)) {
|
|
14
|
+
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)
|
|
15
|
+
? Symbol[name]
|
|
16
|
+
: createWellKnownSymbol('Symbol.' + name);
|
|
23
17
|
} return WellKnownSymbolsStore[name];
|
|
24
18
|
};
|
|
@@ -9,8 +9,7 @@ var proxyAccessor = require('../internals/proxy-accessor');
|
|
|
9
9
|
var inheritIfRequired = require('../internals/inherit-if-required');
|
|
10
10
|
var normalizeStringArgument = require('../internals/normalize-string-argument');
|
|
11
11
|
var installErrorCause = require('../internals/install-error-cause');
|
|
12
|
-
var
|
|
13
|
-
var ERROR_STACK_INSTALLABLE = require('../internals/error-stack-installable');
|
|
12
|
+
var installErrorStack = require('../internals/error-stack-install');
|
|
14
13
|
var DESCRIPTORS = require('../internals/descriptors');
|
|
15
14
|
var IS_PURE = require('../internals/is-pure');
|
|
16
15
|
|
|
@@ -36,7 +35,7 @@ module.exports = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {
|
|
|
36
35
|
var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined);
|
|
37
36
|
var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();
|
|
38
37
|
if (message !== undefined) createNonEnumerableProperty(result, 'message', message);
|
|
39
|
-
|
|
38
|
+
installErrorStack(result, WrappedError, result.stack, 2);
|
|
40
39
|
if (this && isPrototypeOf(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError);
|
|
41
40
|
if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]);
|
|
42
41
|
return result;
|