core-js-pure 3.16.1 → 3.16.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.
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
var userAgent = require('../internals/engine-user-agent');
|
|
2
2
|
var global = require('../internals/global');
|
|
3
3
|
|
|
4
|
-
module.exports = /iphone|ipod
|
|
4
|
+
module.exports = /ipad|iphone|ipod/i.test(userAgent) && global.Pebble !== undefined;
|
|
@@ -34,17 +34,15 @@ var NullProtoObjectViaIFrame = function () {
|
|
|
34
34
|
var iframe = documentCreateElement('iframe');
|
|
35
35
|
var JS = 'java' + SCRIPT + ':';
|
|
36
36
|
var iframeDocument;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
return iframeDocument.F;
|
|
47
|
-
}
|
|
37
|
+
iframe.style.display = 'none';
|
|
38
|
+
html.appendChild(iframe);
|
|
39
|
+
// https://github.com/zloirock/core-js/issues/475
|
|
40
|
+
iframe.src = String(JS);
|
|
41
|
+
iframeDocument = iframe.contentWindow.document;
|
|
42
|
+
iframeDocument.open();
|
|
43
|
+
iframeDocument.write(scriptTag('document.F=Object'));
|
|
44
|
+
iframeDocument.close();
|
|
45
|
+
return iframeDocument.F;
|
|
48
46
|
};
|
|
49
47
|
|
|
50
48
|
// Check for document.domain and active x support
|
|
@@ -57,10 +55,11 @@ var NullProtoObject = function () {
|
|
|
57
55
|
try {
|
|
58
56
|
activeXDocument = new ActiveXObject('htmlfile');
|
|
59
57
|
} catch (error) { /* ignore */ }
|
|
60
|
-
NullProtoObject = document
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
58
|
+
NullProtoObject = typeof document != 'undefined'
|
|
59
|
+
? document.domain && activeXDocument
|
|
60
|
+
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
|
61
|
+
: NullProtoObjectViaIFrame()
|
|
62
|
+
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
|
64
63
|
var length = enumBugKeys.length;
|
|
65
64
|
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
|
66
65
|
return NullProtoObject();
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
var fails = require('./fails');
|
|
2
|
+
var global = require('../internals/global');
|
|
3
|
+
|
|
4
|
+
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
5
|
+
var $RegExp = global.RegExp;
|
|
2
6
|
|
|
3
7
|
module.exports = fails(function () {
|
|
4
|
-
|
|
5
|
-
var re = RegExp('(?<a>b)', (typeof '').charAt(5));
|
|
8
|
+
var re = $RegExp('(?<a>b)', 'g');
|
|
6
9
|
return re.exec('b').groups.a !== 'b' ||
|
|
7
10
|
'b'.replace(re, '$<a>c') !== 'bc';
|
|
8
11
|
});
|
package/internals/shared.js
CHANGED
|
@@ -4,7 +4,7 @@ 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.16.
|
|
7
|
+
version: '3.16.2',
|
|
8
8
|
mode: IS_PURE ? 'pure' : 'global',
|
|
9
9
|
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
|
|
10
10
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "core-js-pure",
|
|
3
3
|
"description": "Standard library",
|
|
4
|
-
"version": "3.16.
|
|
4
|
+
"version": "3.16.2",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/zloirock/core-js.git"
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"scripts": {
|
|
55
55
|
"postinstall": "node -e \"try{require('./postinstall')}catch(e){}\""
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "ef826cce45d2896ee92a2a27f6f09c2397e0a8b3"
|
|
58
58
|
}
|