core-js 3.37.0 → 3.37.1
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.
|
@@ -7,9 +7,9 @@ var SHARED = '__core-js_shared__';
|
|
|
7
7
|
var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
|
|
8
8
|
|
|
9
9
|
(store.versions || (store.versions = [])).push({
|
|
10
|
-
version: '3.37.
|
|
10
|
+
version: '3.37.1',
|
|
11
11
|
mode: IS_PURE ? 'pure' : 'global',
|
|
12
12
|
copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
|
|
13
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.37.
|
|
13
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE',
|
|
14
14
|
source: 'https://github.com/zloirock/core-js'
|
|
15
15
|
});
|
|
@@ -23,7 +23,7 @@ var WRONG_ARITY = !!NativeSuppressedError && NativeSuppressedError.length !== 3;
|
|
|
23
23
|
|
|
24
24
|
// https://github.com/oven-sh/bun/issues/9283
|
|
25
25
|
var EXTRA_ARGS_SUPPORT = !!NativeSuppressedError && fails(function () {
|
|
26
|
-
return NativeSuppressedError(1, 2, 3, { cause: 4 }).cause === 4;
|
|
26
|
+
return new NativeSuppressedError(1, 2, 3, { cause: 4 }).cause === 4;
|
|
27
27
|
});
|
|
28
28
|
|
|
29
29
|
var PATCH = WRONG_ARITY || EXTRA_ARGS_SUPPORT;
|
package/modules/web.url.parse.js
CHANGED
|
@@ -3,12 +3,13 @@ var $ = require('../internals/export');
|
|
|
3
3
|
var getBuiltIn = require('../internals/get-built-in');
|
|
4
4
|
var validateArgumentsLength = require('../internals/validate-arguments-length');
|
|
5
5
|
var toString = require('../internals/to-string');
|
|
6
|
+
var USE_NATIVE_URL = require('../internals/url-constructor-detection');
|
|
6
7
|
|
|
7
8
|
var URL = getBuiltIn('URL');
|
|
8
9
|
|
|
9
10
|
// `URL.parse` method
|
|
10
11
|
// https://url.spec.whatwg.org/#dom-url-canparse
|
|
11
|
-
$({ target: 'URL', stat: true }, {
|
|
12
|
+
$({ target: 'URL', stat: true, forced: !USE_NATIVE_URL }, {
|
|
12
13
|
parse: function parse(url) {
|
|
13
14
|
var length = validateArgumentsLength(arguments.length, 1);
|
|
14
15
|
var urlString = toString(url);
|