core-js-pure
Advanced tools
Comparing version 3.25.2 to 3.25.3
@@ -5,3 +5,3 @@ require('../../modules/es.json.stringify'); | ||
// eslint-disable-next-line es-x/no-json -- safe | ||
// eslint-disable-next-line es/no-json -- safe | ||
module.exports = path.JSON || (path.JSON = { stringify: JSON.stringify }); |
@@ -5,3 +5,3 @@ require('../../modules/es.json.stringify'); | ||
// eslint-disable-next-line es-x/no-json -- safe | ||
// eslint-disable-next-line es/no-json -- safe | ||
if (!path.JSON) path.JSON = { stringify: JSON.stringify }; | ||
@@ -8,0 +8,0 @@ |
@@ -1,2 +0,2 @@ | ||
// eslint-disable-next-line es-x/no-typed-arrays -- safe | ||
// eslint-disable-next-line es/no-typed-arrays -- safe | ||
module.exports = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined'; |
@@ -7,5 +7,5 @@ // FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it | ||
var buffer = new ArrayBuffer(8); | ||
// eslint-disable-next-line es-x/no-object-isextensible, es-x/no-object-defineproperty -- safe | ||
// eslint-disable-next-line es/no-object-isextensible, es/no-object-defineproperty -- safe | ||
if (Object.isExtensible(buffer)) Object.defineProperty(buffer, 'a', { value: 8 }); | ||
} | ||
}); |
@@ -11,3 +11,3 @@ 'use strict'; | ||
// https://tc39.es/ecma262/#sec-array.prototype.copywithin | ||
// eslint-disable-next-line es-x/no-array-prototype-copywithin -- safe | ||
// eslint-disable-next-line es/no-array-prototype-copywithin -- safe | ||
module.exports = [].copyWithin || function copyWithin(target /* = 0 */, start /* = 0, end = @length */) { | ||
@@ -14,0 +14,0 @@ var O = toObject(this); |
@@ -11,3 +11,3 @@ 'use strict'; | ||
return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); | ||
// eslint-disable-next-line es-x/no-array-prototype-foreach -- safe | ||
// eslint-disable-next-line es/no-array-prototype-foreach -- safe | ||
} : [].forEach; |
'use strict'; | ||
/* eslint-disable es-x/no-array-prototype-lastindexof -- safe */ | ||
/* eslint-disable es/no-array-prototype-lastindexof -- safe */ | ||
var apply = require('../internals/function-apply'); | ||
@@ -4,0 +4,0 @@ var toIndexedObject = require('../internals/to-indexed-object'); |
@@ -6,3 +6,3 @@ 'use strict'; | ||
var $TypeError = TypeError; | ||
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe | ||
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe | ||
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; | ||
@@ -15,3 +15,3 @@ | ||
try { | ||
// eslint-disable-next-line es-x/no-object-defineproperty -- safe | ||
// eslint-disable-next-line es/no-object-defineproperty -- safe | ||
Object.defineProperty([], 'length', { writable: false }).length = 1; | ||
@@ -18,0 +18,0 @@ } catch (error) { |
@@ -19,3 +19,3 @@ var wellKnownSymbol = require('../internals/well-known-symbol'); | ||
}; | ||
// eslint-disable-next-line es-x/no-array-from, no-throw-literal -- required for testing | ||
// eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing | ||
Array.from(iteratorWithReturn, function () { throw 2; }); | ||
@@ -22,0 +22,0 @@ } catch (error) { /* empty */ } |
@@ -6,4 +6,4 @@ var fails = require('../internals/fails'); | ||
F.prototype.constructor = null; | ||
// eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing | ||
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing | ||
return Object.getPrototypeOf(new F()) !== F.prototype; | ||
}); |
var global = require('../internals/global'); | ||
// eslint-disable-next-line es-x/no-object-defineproperty -- safe | ||
// eslint-disable-next-line es/no-object-defineproperty -- safe | ||
var defineProperty = Object.defineProperty; | ||
@@ -5,0 +5,0 @@ |
@@ -5,4 +5,4 @@ var fails = require('../internals/fails'); | ||
module.exports = !fails(function () { | ||
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing | ||
// eslint-disable-next-line es/no-object-defineproperty -- required for testing | ||
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7; | ||
}); |
@@ -7,5 +7,5 @@ var fails = require('../internals/fails'); | ||
if (!('stack' in error)) return true; | ||
// eslint-disable-next-line es-x/no-object-defineproperty -- safe | ||
// eslint-disable-next-line es/no-object-defineproperty -- safe | ||
Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7)); | ||
return error.stack !== 7; | ||
}); |
@@ -13,3 +13,3 @@ 'use strict'; | ||
// Chrome 32- incorrectly call accessor | ||
// eslint-disable-next-line es-x/no-object-defineproperty -- safe | ||
// eslint-disable-next-line es/no-object-defineproperty -- safe | ||
var object = create(Object.defineProperty({}, 'name', { get: function () { | ||
@@ -16,0 +16,0 @@ return this === object; |
var fails = require('../internals/fails'); | ||
module.exports = !fails(function () { | ||
// eslint-disable-next-line es-x/no-object-isextensible, es-x/no-object-preventextensions -- required for testing | ||
// eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing | ||
return Object.isExtensible(Object.preventExtensions({})); | ||
}); |
@@ -7,5 +7,5 @@ var NATIVE_BIND = require('../internals/function-bind-native'); | ||
// eslint-disable-next-line es-x/no-reflect -- safe | ||
// eslint-disable-next-line es/no-reflect -- safe | ||
module.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () { | ||
return call.apply(apply, arguments); | ||
}); |
var fails = require('../internals/fails'); | ||
module.exports = !fails(function () { | ||
// eslint-disable-next-line es-x/no-function-prototype-bind -- safe | ||
// eslint-disable-next-line es/no-function-prototype-bind -- safe | ||
var test = (function () { /* empty */ }).bind(); | ||
@@ -6,0 +6,0 @@ // eslint-disable-next-line no-prototype-builtins -- safe |
@@ -5,3 +5,3 @@ var DESCRIPTORS = require('../internals/descriptors'); | ||
var FunctionPrototype = Function.prototype; | ||
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe | ||
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe | ||
var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor; | ||
@@ -8,0 +8,0 @@ |
@@ -7,3 +7,3 @@ var check = function (it) { | ||
module.exports = | ||
// eslint-disable-next-line es-x/no-global-this -- safe | ||
// eslint-disable-next-line es/no-global-this -- safe | ||
check(typeof globalThis == 'object' && globalThis) || | ||
@@ -10,0 +10,0 @@ check(typeof window == 'object' && window) || |
@@ -8,5 +8,5 @@ var uncurryThis = require('../internals/function-uncurry-this'); | ||
// https://tc39.es/ecma262/#sec-hasownproperty | ||
// eslint-disable-next-line es-x/no-object-hasown -- safe | ||
// eslint-disable-next-line es/no-object-hasown -- safe | ||
module.exports = Object.hasOwn || function hasOwn(it, key) { | ||
return hasOwnProperty(toObject(it), key); | ||
}; |
@@ -7,3 +7,3 @@ var DESCRIPTORS = require('../internals/descriptors'); | ||
module.exports = !DESCRIPTORS && !fails(function () { | ||
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing | ||
// eslint-disable-next-line es/no-object-defineproperty -- required for testing | ||
return Object.defineProperty(createElement('div'), 'a', { | ||
@@ -10,0 +10,0 @@ get: function () { return 7; } |
@@ -5,5 +5,5 @@ var classof = require('../internals/classof-raw'); | ||
// https://tc39.es/ecma262/#sec-isarray | ||
// eslint-disable-next-line es-x/no-array-isarray -- safe | ||
// eslint-disable-next-line es/no-array-isarray -- safe | ||
module.exports = Array.isArray || function isArray(argument) { | ||
return classof(argument) == 'Array'; | ||
}; |
@@ -7,5 +7,5 @@ var isObject = require('../internals/is-object'); | ||
// https://tc39.es/ecma262/#sec-isintegralnumber | ||
// eslint-disable-next-line es-x/no-number-isinteger -- safe | ||
// eslint-disable-next-line es/no-number-isinteger -- safe | ||
module.exports = Number.isInteger || function isInteger(it) { | ||
return !isObject(it) && isFinite(it) && floor(it) === it; | ||
}; |
@@ -18,3 +18,3 @@ 'use strict'; | ||
/* eslint-disable es-x/no-array-prototype-keys -- safe */ | ||
/* eslint-disable es/no-array-prototype-keys -- safe */ | ||
if ([].keys) { | ||
@@ -21,0 +21,0 @@ arrayIterator = [].keys(); |
@@ -1,2 +0,2 @@ | ||
// eslint-disable-next-line es-x/no-math-expm1 -- safe | ||
// eslint-disable-next-line es/no-math-expm1 -- safe | ||
var $expm1 = Math.expm1; | ||
@@ -3,0 +3,0 @@ var exp = Math.exp; |
@@ -16,3 +16,3 @@ var sign = require('../internals/math-sign'); | ||
// https://tc39.es/ecma262/#sec-math.fround | ||
// eslint-disable-next-line es-x/no-math-fround -- safe | ||
// eslint-disable-next-line es/no-math-fround -- safe | ||
module.exports = Math.fround || function fround(x) { | ||
@@ -19,0 +19,0 @@ var n = +x; |
var log = Math.log; | ||
var LOG10E = Math.LOG10E; | ||
// eslint-disable-next-line es-x/no-math-log10 -- safe | ||
// eslint-disable-next-line es/no-math-log10 -- safe | ||
module.exports = Math.log10 || function log10(x) { | ||
return log(x) * LOG10E; | ||
}; |
@@ -5,3 +5,3 @@ var log = Math.log; | ||
// https://tc39.es/ecma262/#sec-math.log1p | ||
// eslint-disable-next-line es-x/no-math-log1p -- safe | ||
// eslint-disable-next-line es/no-math-log1p -- safe | ||
module.exports = Math.log1p || function log1p(x) { | ||
@@ -8,0 +8,0 @@ var n = +x; |
// `Math.sign` method implementation | ||
// https://tc39.es/ecma262/#sec-math.sign | ||
// eslint-disable-next-line es-x/no-math-sign -- safe | ||
// eslint-disable-next-line es/no-math-sign -- safe | ||
module.exports = Math.sign || function sign(x) { | ||
@@ -5,0 +5,0 @@ var n = +x; |
@@ -6,3 +6,3 @@ var ceil = Math.ceil; | ||
// https://tc39.es/ecma262/#sec-math.trunc | ||
// eslint-disable-next-line es-x/no-math-trunc -- safe | ||
// eslint-disable-next-line es/no-math-trunc -- safe | ||
module.exports = Math.trunc || function trunc(x) { | ||
@@ -9,0 +9,0 @@ var n = +x; |
@@ -7,5 +7,5 @@ var global = require('../internals/global'); | ||
// https://tc39.es/ecma262/#sec-number.isfinite | ||
// eslint-disable-next-line es-x/no-number-isfinite -- safe | ||
// eslint-disable-next-line es/no-number-isfinite -- safe | ||
module.exports = Number.isFinite || function isFinite(it) { | ||
return typeof it == 'number' && globalIsFinite(it); | ||
}; |
@@ -12,5 +12,5 @@ 'use strict'; | ||
// eslint-disable-next-line es-x/no-object-assign -- safe | ||
// eslint-disable-next-line es/no-object-assign -- safe | ||
var $assign = Object.assign; | ||
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing | ||
// eslint-disable-next-line es/no-object-defineproperty -- required for testing | ||
var defineProperty = Object.defineProperty; | ||
@@ -35,3 +35,3 @@ var concat = uncurryThis([].concat); | ||
var B = {}; | ||
// eslint-disable-next-line es-x/no-symbol -- safe | ||
// eslint-disable-next-line es/no-symbol -- safe | ||
var symbol = Symbol(); | ||
@@ -38,0 +38,0 @@ var alphabet = 'abcdefghijklmnopqrst'; |
@@ -72,3 +72,3 @@ /* global ActiveXObject -- old IE, WSH */ | ||
// https://tc39.es/ecma262/#sec-object.create | ||
// eslint-disable-next-line es-x/no-object-create -- safe | ||
// eslint-disable-next-line es/no-object-create -- safe | ||
module.exports = Object.create || function create(O, Properties) { | ||
@@ -75,0 +75,0 @@ var result; |
@@ -10,3 +10,3 @@ var DESCRIPTORS = require('../internals/descriptors'); | ||
// https://tc39.es/ecma262/#sec-object.defineproperties | ||
// eslint-disable-next-line es-x/no-object-defineproperties -- safe | ||
// eslint-disable-next-line es/no-object-defineproperties -- safe | ||
exports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) { | ||
@@ -13,0 +13,0 @@ anObject(O); |
@@ -8,5 +8,5 @@ var DESCRIPTORS = require('../internals/descriptors'); | ||
var $TypeError = TypeError; | ||
// eslint-disable-next-line es-x/no-object-defineproperty -- safe | ||
// eslint-disable-next-line es/no-object-defineproperty -- safe | ||
var $defineProperty = Object.defineProperty; | ||
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe | ||
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe | ||
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; | ||
@@ -13,0 +13,0 @@ var ENUMERABLE = 'enumerable'; |
@@ -10,3 +10,3 @@ var DESCRIPTORS = require('../internals/descriptors'); | ||
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe | ||
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe | ||
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; | ||
@@ -13,0 +13,0 @@ |
@@ -1,2 +0,2 @@ | ||
/* eslint-disable es-x/no-object-getownpropertynames -- safe */ | ||
/* eslint-disable es/no-object-getownpropertynames -- safe */ | ||
var classof = require('../internals/classof-raw'); | ||
@@ -3,0 +3,0 @@ var toIndexedObject = require('../internals/to-indexed-object'); |
@@ -8,5 +8,5 @@ var internalObjectKeys = require('../internals/object-keys-internal'); | ||
// https://tc39.es/ecma262/#sec-object.getownpropertynames | ||
// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe | ||
// eslint-disable-next-line es/no-object-getownpropertynames -- safe | ||
exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { | ||
return internalObjectKeys(O, hiddenKeys); | ||
}; |
@@ -1,2 +0,2 @@ | ||
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe | ||
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe | ||
exports.f = Object.getOwnPropertySymbols; |
@@ -13,3 +13,3 @@ var hasOwn = require('../internals/has-own-property'); | ||
// https://tc39.es/ecma262/#sec-object.getprototypeof | ||
// eslint-disable-next-line es-x/no-object-getprototypeof -- safe | ||
// eslint-disable-next-line es/no-object-getprototypeof -- safe | ||
module.exports = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) { | ||
@@ -16,0 +16,0 @@ var object = toObject(O); |
@@ -6,3 +6,3 @@ var fails = require('../internals/fails'); | ||
// eslint-disable-next-line es-x/no-object-isextensible -- safe | ||
// eslint-disable-next-line es/no-object-isextensible -- safe | ||
var $isExtensible = Object.isExtensible; | ||
@@ -9,0 +9,0 @@ var FAILS_ON_PRIMITIVES = fails(function () { $isExtensible(1); }); |
@@ -6,5 +6,5 @@ var internalObjectKeys = require('../internals/object-keys-internal'); | ||
// https://tc39.es/ecma262/#sec-object.keys | ||
// eslint-disable-next-line es-x/no-object-keys -- safe | ||
// eslint-disable-next-line es/no-object-keys -- safe | ||
module.exports = Object.keys || function keys(O) { | ||
return internalObjectKeys(O, enumBugKeys); | ||
}; |
'use strict'; | ||
var $propertyIsEnumerable = {}.propertyIsEnumerable; | ||
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe | ||
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe | ||
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; | ||
@@ -5,0 +5,0 @@ |
@@ -14,5 +14,5 @@ 'use strict'; | ||
// In FF throws only define methods | ||
// eslint-disable-next-line no-undef, no-useless-call, es-x/no-legacy-object-prototype-accessor-methods -- required for testing | ||
// eslint-disable-next-line no-undef, no-useless-call, es/no-legacy-object-prototype-accessor-methods -- required for testing | ||
__defineSetter__.call(null, key, function () { /* empty */ }); | ||
delete global[key]; | ||
}); |
@@ -9,3 +9,3 @@ /* eslint-disable no-proto -- safe */ | ||
// Works with __proto__ only. Old v8 can't work with null proto objects. | ||
// eslint-disable-next-line es-x/no-object-setprototypeof -- safe | ||
// eslint-disable-next-line es/no-object-setprototypeof -- safe | ||
module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () { | ||
@@ -16,3 +16,3 @@ var CORRECT_SETTER = false; | ||
try { | ||
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe | ||
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe | ||
setter = uncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set); | ||
@@ -19,0 +19,0 @@ setter(test, []); |
// `SameValue` abstract operation | ||
// https://tc39.es/ecma262/#sec-samevalue | ||
// eslint-disable-next-line es-x/no-object-is -- safe | ||
// eslint-disable-next-line es/no-object-is -- safe | ||
module.exports = Object.is || function is(x, y) { | ||
@@ -5,0 +5,0 @@ // eslint-disable-next-line no-self-compare -- NaN check |
@@ -7,7 +7,7 @@ var IS_PURE = require('../internals/is-pure'); | ||
})('versions', []).push({ | ||
version: '3.25.2', | ||
version: '3.25.3', | ||
mode: IS_PURE ? 'pure' : 'global', | ||
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)', | ||
license: 'https://github.com/zloirock/core-js/blob/v3.25.2/LICENSE', | ||
license: 'https://github.com/zloirock/core-js/blob/v3.25.3/LICENSE', | ||
source: 'https://github.com/zloirock/core-js' | ||
}); |
@@ -10,3 +10,3 @@ 'use strict'; | ||
return $trimEnd(this); | ||
// eslint-disable-next-line es-x/no-string-prototype-trimstart-trimend -- safe | ||
// eslint-disable-next-line es/no-string-prototype-trimstart-trimend -- safe | ||
} : ''.trimEnd; |
@@ -10,3 +10,3 @@ 'use strict'; | ||
return $trimStart(this); | ||
// eslint-disable-next-line es-x/no-string-prototype-trimstart-trimend -- safe | ||
// eslint-disable-next-line es/no-string-prototype-trimstart-trimend -- safe | ||
} : ''.trimStart; |
@@ -1,6 +0,6 @@ | ||
/* eslint-disable es-x/no-symbol -- required for testing */ | ||
/* eslint-disable es/no-symbol -- required for testing */ | ||
var V8_VERSION = require('../internals/engine-v8-version'); | ||
var fails = require('../internals/fails'); | ||
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing | ||
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing | ||
module.exports = !!Object.getOwnPropertySymbols && !fails(function () { | ||
@@ -7,0 +7,0 @@ var symbol = Symbol(); |
var NATIVE_SYMBOL = require('../internals/symbol-constructor-detection'); | ||
/* eslint-disable es-x/no-symbol -- safe */ | ||
/* eslint-disable es/no-symbol -- safe */ | ||
module.exports = NATIVE_SYMBOL && !!Symbol['for'] && !!Symbol.keyFor; |
@@ -24,7 +24,7 @@ var global = require('../internals/global'); | ||
var ONREADYSTATECHANGE = 'onreadystatechange'; | ||
var location, defer, channel, port; | ||
var $location, defer, channel, port; | ||
try { | ||
// Deno throws a ReferenceError on `location` access without `--location` flag | ||
location = global.location; | ||
$location = global.location; | ||
} catch (error) { /* empty */ } | ||
@@ -52,3 +52,3 @@ | ||
// old engines have not location.origin | ||
global.postMessage(String(id), location.protocol + '//' + location.host); | ||
global.postMessage(String(id), $location.protocol + '//' + $location.host); | ||
}; | ||
@@ -94,3 +94,3 @@ | ||
!global.importScripts && | ||
location && location.protocol !== 'file:' && | ||
$location && $location.protocol !== 'file:' && | ||
!fails(post) | ||
@@ -97,0 +97,0 @@ ) { |
@@ -10,4 +10,4 @@ var toPrimitive = require('../internals/to-primitive'); | ||
if (typeof prim == 'number') throw $TypeError("Can't convert number to bigint"); | ||
// eslint-disable-next-line es-x/no-bigint -- safe | ||
// eslint-disable-next-line es/no-bigint -- safe | ||
return BigInt(prim); | ||
}; |
@@ -1,2 +0,2 @@ | ||
/* eslint-disable es-x/no-symbol -- required for testing */ | ||
/* eslint-disable es/no-symbol -- required for testing */ | ||
var NATIVE_SYMBOL = require('../internals/symbol-constructor-detection'); | ||
@@ -3,0 +3,0 @@ |
@@ -7,3 +7,3 @@ var DESCRIPTORS = require('../internals/descriptors'); | ||
module.exports = DESCRIPTORS && fails(function () { | ||
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing | ||
// eslint-disable-next-line es/no-object-defineproperty -- required for testing | ||
return Object.defineProperty(function () { /* empty */ }, 'prototype', { | ||
@@ -10,0 +10,0 @@ value: 42, |
@@ -7,5 +7,5 @@ 'use strict'; | ||
// https://tc39.es/ecma262/#sec-array.prototype.foreach | ||
// eslint-disable-next-line es-x/no-array-prototype-foreach -- safe | ||
// eslint-disable-next-line es/no-array-prototype-foreach -- safe | ||
$({ target: 'Array', proto: true, forced: [].forEach != forEach }, { | ||
forEach: forEach | ||
}); |
@@ -6,3 +6,3 @@ var $ = require('../internals/export'); | ||
var INCORRECT_ITERATION = !checkCorrectnessOfIteration(function (iterable) { | ||
// eslint-disable-next-line es-x/no-array-from -- required for testing | ||
// eslint-disable-next-line es/no-array-from -- required for testing | ||
Array.from(iterable); | ||
@@ -9,0 +9,0 @@ }); |
'use strict'; | ||
/* eslint-disable es-x/no-array-prototype-indexof -- required for testing */ | ||
/* eslint-disable es/no-array-prototype-indexof -- required for testing */ | ||
var $ = require('../internals/export'); | ||
@@ -4,0 +4,0 @@ var uncurryThis = require('../internals/function-uncurry-this'); |
@@ -6,5 +6,5 @@ var $ = require('../internals/export'); | ||
// https://tc39.es/ecma262/#sec-array.prototype.lastindexof | ||
// eslint-disable-next-line es-x/no-array-prototype-lastindexof -- required for testing | ||
// eslint-disable-next-line es/no-array-prototype-lastindexof -- required for testing | ||
$({ target: 'Array', proto: true, forced: lastIndexOf !== [].lastIndexOf }, { | ||
lastIndexOf: lastIndexOf | ||
}); |
@@ -11,3 +11,3 @@ 'use strict'; | ||
function F() { /* empty */ } | ||
// eslint-disable-next-line es-x/no-array-of -- safe | ||
// eslint-disable-next-line es/no-array-of -- safe | ||
return !($Array.of.call(F) instanceof F); | ||
@@ -14,0 +14,0 @@ }); |
@@ -17,3 +17,3 @@ 'use strict'; | ||
try { | ||
// eslint-disable-next-line es-x/no-object-defineproperty -- safe | ||
// eslint-disable-next-line es/no-object-defineproperty -- safe | ||
Object.defineProperty([], 'length', { writable: false }).push(); | ||
@@ -20,0 +20,0 @@ } catch (error) { |
@@ -15,3 +15,3 @@ 'use strict'; | ||
try { | ||
// eslint-disable-next-line es-x/no-object-defineproperty -- safe | ||
// eslint-disable-next-line es/no-object-defineproperty -- safe | ||
Object.defineProperty([], 'length', { writable: false }).unshift(); | ||
@@ -18,0 +18,0 @@ } catch (error) { |
var $ = require('../internals/export'); | ||
var log1p = require('../internals/math-log1p'); | ||
// eslint-disable-next-line es-x/no-math-acosh -- required for testing | ||
// eslint-disable-next-line es/no-math-acosh -- required for testing | ||
var $acosh = Math.acosh; | ||
@@ -6,0 +6,0 @@ var log = Math.log; |
var $ = require('../internals/export'); | ||
// eslint-disable-next-line es-x/no-math-asinh -- required for testing | ||
// eslint-disable-next-line es/no-math-asinh -- required for testing | ||
var $asinh = Math.asinh; | ||
@@ -5,0 +5,0 @@ var log = Math.log; |
var $ = require('../internals/export'); | ||
// eslint-disable-next-line es-x/no-math-atanh -- required for testing | ||
// eslint-disable-next-line es/no-math-atanh -- required for testing | ||
var $atanh = Math.atanh; | ||
@@ -5,0 +5,0 @@ var log = Math.log; |
var $ = require('../internals/export'); | ||
var expm1 = require('../internals/math-expm1'); | ||
// eslint-disable-next-line es-x/no-math-cosh -- required for testing | ||
// eslint-disable-next-line es/no-math-cosh -- required for testing | ||
var $cosh = Math.cosh; | ||
@@ -6,0 +6,0 @@ var abs = Math.abs; |
@@ -6,3 +6,3 @@ var $ = require('../internals/export'); | ||
// https://tc39.es/ecma262/#sec-math.expm1 | ||
// eslint-disable-next-line es-x/no-math-expm1 -- required for testing | ||
// eslint-disable-next-line es/no-math-expm1 -- required for testing | ||
$({ target: 'Math', stat: true, forced: expm1 != Math.expm1 }, { expm1: expm1 }); |
var $ = require('../internals/export'); | ||
// eslint-disable-next-line es-x/no-math-hypot -- required for testing | ||
// eslint-disable-next-line es/no-math-hypot -- required for testing | ||
var $hypot = Math.hypot; | ||
@@ -5,0 +5,0 @@ var abs = Math.abs; |
var $ = require('../internals/export'); | ||
var fails = require('../internals/fails'); | ||
// eslint-disable-next-line es-x/no-math-imul -- required for testing | ||
// eslint-disable-next-line es/no-math-imul -- required for testing | ||
var $imul = Math.imul; | ||
@@ -6,0 +6,0 @@ |
@@ -10,3 +10,3 @@ var $ = require('../internals/export'); | ||
var FORCED = fails(function () { | ||
// eslint-disable-next-line es-x/no-math-sinh -- required for testing | ||
// eslint-disable-next-line es/no-math-sinh -- required for testing | ||
return Math.sinh(-2e-17) != -2e-17; | ||
@@ -13,0 +13,0 @@ }); |
@@ -6,5 +6,5 @@ var $ = require('../internals/export'); | ||
// https://tc39.es/ecma262/#sec-number.parseFloat | ||
// eslint-disable-next-line es-x/no-number-parsefloat -- required for testing | ||
// eslint-disable-next-line es/no-number-parsefloat -- required for testing | ||
$({ target: 'Number', stat: true, forced: Number.parseFloat != parseFloat }, { | ||
parseFloat: parseFloat | ||
}); |
@@ -6,5 +6,5 @@ var $ = require('../internals/export'); | ||
// https://tc39.es/ecma262/#sec-number.parseint | ||
// eslint-disable-next-line es-x/no-number-parseint -- required for testing | ||
// eslint-disable-next-line es/no-number-parseint -- required for testing | ||
$({ target: 'Number', stat: true, forced: Number.parseInt != parseInt }, { | ||
parseInt: parseInt | ||
}); |
@@ -6,5 +6,5 @@ var $ = require('../internals/export'); | ||
// https://tc39.es/ecma262/#sec-object.assign | ||
// eslint-disable-next-line es-x/no-object-assign -- required for testing | ||
// eslint-disable-next-line es/no-object-assign -- required for testing | ||
$({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, { | ||
assign: assign | ||
}); |
@@ -7,5 +7,5 @@ var $ = require('../internals/export'); | ||
// https://tc39.es/ecma262/#sec-object.defineproperties | ||
// eslint-disable-next-line es-x/no-object-defineproperties -- safe | ||
// eslint-disable-next-line es/no-object-defineproperties -- safe | ||
$({ target: 'Object', stat: true, forced: Object.defineProperties !== defineProperties, sham: !DESCRIPTORS }, { | ||
defineProperties: defineProperties | ||
}); |
@@ -7,5 +7,5 @@ var $ = require('../internals/export'); | ||
// https://tc39.es/ecma262/#sec-object.defineproperty | ||
// eslint-disable-next-line es-x/no-object-defineproperty -- safe | ||
// eslint-disable-next-line es/no-object-defineproperty -- safe | ||
$({ target: 'Object', stat: true, forced: Object.defineProperty !== defineProperty, sham: !DESCRIPTORS }, { | ||
defineProperty: defineProperty | ||
}); |
@@ -7,3 +7,3 @@ var $ = require('../internals/export'); | ||
// eslint-disable-next-line es-x/no-object-freeze -- safe | ||
// eslint-disable-next-line es/no-object-freeze -- safe | ||
var $freeze = Object.freeze; | ||
@@ -10,0 +10,0 @@ var FAILS_ON_PRIMITIVES = fails(function () { $freeze(1); }); |
@@ -5,3 +5,3 @@ var $ = require('../internals/export'); | ||
// eslint-disable-next-line es-x/no-object-getownpropertynames -- required for testing | ||
// eslint-disable-next-line es/no-object-getownpropertynames -- required for testing | ||
var FAILS_ON_PRIMITIVES = fails(function () { return !Object.getOwnPropertyNames(1); }); | ||
@@ -8,0 +8,0 @@ |
@@ -6,5 +6,5 @@ var $ = require('../internals/export'); | ||
// https://tc39.es/ecma262/#sec-object.isextensible | ||
// eslint-disable-next-line es-x/no-object-isextensible -- safe | ||
// eslint-disable-next-line es/no-object-isextensible -- safe | ||
$({ target: 'Object', stat: true, forced: Object.isExtensible !== $isExtensible }, { | ||
isExtensible: $isExtensible | ||
}); |
@@ -7,3 +7,3 @@ var $ = require('../internals/export'); | ||
// eslint-disable-next-line es-x/no-object-isfrozen -- safe | ||
// eslint-disable-next-line es/no-object-isfrozen -- safe | ||
var $isFrozen = Object.isFrozen; | ||
@@ -10,0 +10,0 @@ var FAILS_ON_PRIMITIVES = fails(function () { $isFrozen(1); }); |
@@ -7,3 +7,3 @@ var $ = require('../internals/export'); | ||
// eslint-disable-next-line es-x/no-object-issealed -- safe | ||
// eslint-disable-next-line es/no-object-issealed -- safe | ||
var $isSealed = Object.isSealed; | ||
@@ -10,0 +10,0 @@ var FAILS_ON_PRIMITIVES = fails(function () { $isSealed(1); }); |
@@ -7,3 +7,3 @@ var $ = require('../internals/export'); | ||
// eslint-disable-next-line es-x/no-object-preventextensions -- safe | ||
// eslint-disable-next-line es/no-object-preventextensions -- safe | ||
var $preventExtensions = Object.preventExtensions; | ||
@@ -10,0 +10,0 @@ var FAILS_ON_PRIMITIVES = fails(function () { $preventExtensions(1); }); |
@@ -7,3 +7,3 @@ var $ = require('../internals/export'); | ||
// eslint-disable-next-line es-x/no-object-seal -- safe | ||
// eslint-disable-next-line es/no-object-seal -- safe | ||
var $seal = Object.seal; | ||
@@ -10,0 +10,0 @@ var FAILS_ON_PRIMITIVES = fails(function () { $seal(1); }); |
@@ -9,3 +9,3 @@ var $ = require('../internals/export'); | ||
var OPTIONAL_ARGUMENTS_LIST = !fails(function () { | ||
// eslint-disable-next-line es-x/no-reflect -- required for testing | ||
// eslint-disable-next-line es/no-reflect -- required for testing | ||
Reflect.apply(function () { /* empty */ }); | ||
@@ -12,0 +12,0 @@ }); |
@@ -10,3 +10,3 @@ var $ = require('../internals/export'); | ||
var ERROR_INSTEAD_OF_FALSE = fails(function () { | ||
// eslint-disable-next-line es-x/no-reflect -- required for testing | ||
// eslint-disable-next-line es/no-reflect -- required for testing | ||
Reflect.defineProperty(definePropertyModule.f({}, 1, { value: 1 }), 1, { value: 2 }); | ||
@@ -13,0 +13,0 @@ }); |
@@ -43,3 +43,3 @@ var $ = require('../internals/export'); | ||
var object = definePropertyModule.f(new Constructor(), 'a', { configurable: true }); | ||
// eslint-disable-next-line es-x/no-reflect -- required for testing | ||
// eslint-disable-next-line es/no-reflect -- required for testing | ||
return Reflect.set(Constructor.prototype, 'a', 1, object) !== false; | ||
@@ -46,0 +46,0 @@ }); |
@@ -12,3 +12,3 @@ 'use strict'; | ||
var FORCED = fails(function () { | ||
// eslint-disable-next-line es-x/no-array-string-prototype-at -- safe | ||
// eslint-disable-next-line es/no-array-string-prototype-at -- safe | ||
return '𠮷'.at(-2) !== '\uD842'; | ||
@@ -15,0 +15,0 @@ }); |
@@ -12,3 +12,3 @@ 'use strict'; | ||
// eslint-disable-next-line es-x/no-string-prototype-endswith -- safe | ||
// eslint-disable-next-line es/no-string-prototype-endswith -- safe | ||
var nativeEndsWith = uncurryThis(''.endsWith); | ||
@@ -15,0 +15,0 @@ var slice = uncurryThis(''.slice); |
@@ -7,3 +7,3 @@ var $ = require('../internals/export'); | ||
var fromCharCode = String.fromCharCode; | ||
// eslint-disable-next-line es-x/no-string-fromcodepoint -- required for testing | ||
// eslint-disable-next-line es/no-string-fromcodepoint -- required for testing | ||
var $fromCodePoint = String.fromCodePoint; | ||
@@ -10,0 +10,0 @@ var join = uncurryThis([].join); |
'use strict'; | ||
/* eslint-disable es-x/no-string-prototype-matchall -- safe */ | ||
/* eslint-disable es/no-string-prototype-matchall -- safe */ | ||
var $ = require('../internals/export'); | ||
@@ -4,0 +4,0 @@ var call = require('../internals/function-call'); |
@@ -12,3 +12,3 @@ 'use strict'; | ||
// eslint-disable-next-line es-x/no-string-prototype-startswith -- safe | ||
// eslint-disable-next-line es/no-string-prototype-startswith -- safe | ||
var nativeStartsWith = uncurryThis(''.startsWith); | ||
@@ -15,0 +15,0 @@ var stringSlice = uncurryThis(''.slice); |
@@ -12,3 +12,3 @@ 'use strict'; | ||
// eslint-disable-next-line unicorn/prefer-string-slice, es-x/no-string-prototype-substr -- required for testing | ||
// eslint-disable-next-line unicorn/prefer-string-slice, es/no-string-prototype-substr -- required for testing | ||
var FORCED = !''.substr || 'ab'.substr(-1) !== 'b'; | ||
@@ -15,0 +15,0 @@ |
@@ -8,5 +8,5 @@ // TODO: Remove this line from `core-js@4` | ||
// https://tc39.es/ecma262/#sec-string.prototype.trimend | ||
// eslint-disable-next-line es-x/no-string-prototype-trimstart-trimend -- safe | ||
// eslint-disable-next-line es/no-string-prototype-trimstart-trimend -- safe | ||
$({ target: 'String', proto: true, name: 'trimEnd', forced: ''.trimEnd !== trimEnd }, { | ||
trimEnd: trimEnd | ||
}); |
@@ -6,5 +6,5 @@ var $ = require('../internals/export'); | ||
// https://tc39.es/ecma262/#sec-string.prototype.trimleft | ||
// eslint-disable-next-line es-x/no-string-prototype-trimleft-trimright -- safe | ||
// eslint-disable-next-line es/no-string-prototype-trimleft-trimright -- safe | ||
$({ target: 'String', proto: true, name: 'trimStart', forced: ''.trimLeft !== trimStart }, { | ||
trimLeft: trimStart | ||
}); |
@@ -6,5 +6,5 @@ var $ = require('../internals/export'); | ||
// https://tc39.es/ecma262/#sec-string.prototype.trimend | ||
// eslint-disable-next-line es-x/no-string-prototype-trimleft-trimright -- safe | ||
// eslint-disable-next-line es/no-string-prototype-trimleft-trimright -- safe | ||
$({ target: 'String', proto: true, name: 'trimEnd', forced: ''.trimRight !== trimEnd }, { | ||
trimRight: trimEnd | ||
}); |
@@ -8,5 +8,5 @@ // TODO: Remove this line from `core-js@4` | ||
// https://tc39.es/ecma262/#sec-string.prototype.trimstart | ||
// eslint-disable-next-line es-x/no-string-prototype-trimstart-trimend -- safe | ||
// eslint-disable-next-line es/no-string-prototype-trimstart-trimend -- safe | ||
$({ target: 'String', proto: true, name: 'trimStart', forced: ''.trimStart !== trimStart }, { | ||
trimStart: trimStart | ||
}); |
@@ -6,2 +6,3 @@ // TODO: Remove from `core-js@4` | ||
var $groupToMap = require('../internals/array-group-to-map'); | ||
var IS_PURE = require('../internals/is-pure'); | ||
@@ -11,3 +12,3 @@ // `Array.prototype.groupByToMap` method | ||
// https://bugs.webkit.org/show_bug.cgi?id=236541 | ||
$({ target: 'Array', proto: true, name: 'groupToMap', forced: !arrayMethodIsStrict('groupByToMap') }, { | ||
$({ target: 'Array', proto: true, name: 'groupToMap', forced: IS_PURE || !arrayMethodIsStrict('groupByToMap') }, { | ||
groupByToMap: $groupToMap | ||
@@ -14,0 +15,0 @@ }); |
var $ = require('../internals/export'); | ||
var addToUnscopables = require('../internals/add-to-unscopables'); | ||
var $groupToMap = require('../internals/array-group-to-map'); | ||
var IS_PURE = require('../internals/is-pure'); | ||
// `Array.prototype.groupToMap` method | ||
// https://github.com/tc39/proposal-array-grouping | ||
$({ target: 'Array', proto: true }, { | ||
$({ target: 'Array', proto: true, forced: IS_PURE }, { | ||
groupToMap: $groupToMap | ||
@@ -9,0 +10,0 @@ }); |
var $ = require('../internals/export'); | ||
var isArray = require('../internals/is-array'); | ||
// eslint-disable-next-line es-x/no-object-isfrozen -- safe | ||
// eslint-disable-next-line es/no-object-isfrozen -- safe | ||
var isFrozen = Object.isFrozen; | ||
@@ -6,0 +6,0 @@ |
'use strict'; | ||
/* eslint-disable es-x/no-bigint -- safe */ | ||
/* eslint-disable es/no-bigint -- safe */ | ||
var $ = require('../internals/export'); | ||
@@ -4,0 +4,0 @@ var NumericRangeIterator = require('../internals/numeric-range-iterator'); |
@@ -8,3 +8,3 @@ var $ = require('../internals/export'); | ||
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe | ||
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe | ||
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; | ||
@@ -11,0 +11,0 @@ var classRegExp = /^\s*class\b/; |
@@ -30,3 +30,3 @@ 'use strict'; | ||
var MessageChannel = getBuiltIn('MessageChannel') || tryNodeRequire('worker_threads').MessageChannel; | ||
// eslint-disable-next-line es-x/no-weak-map, unicorn/require-post-message-target-origin -- safe | ||
// eslint-disable-next-line es/no-weak-map, unicorn/require-post-message-target-origin -- safe | ||
new MessageChannel().port1.postMessage(new WeakMap()); | ||
@@ -33,0 +33,0 @@ } catch (error) { |
@@ -38,3 +38,3 @@ 'use strict'; | ||
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe | ||
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe | ||
var descriptor = NativeDOMException && DESCRIPTORS && Object.getOwnPropertyDescriptor(global, DOM_EXCEPTION); | ||
@@ -41,0 +41,0 @@ |
@@ -37,3 +37,3 @@ 'use strict'; | ||
var getInternalIteratorState = InternalStateModule.getterFor(URL_SEARCH_PARAMS_ITERATOR); | ||
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe | ||
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe | ||
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; | ||
@@ -40,0 +40,0 @@ |
{ | ||
"name": "core-js-pure", | ||
"description": "Standard library", | ||
"version": "3.25.2", | ||
"version": "3.25.3", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
@@ -1,2 +0,1 @@ | ||
require('../proposals/array-find-from-last'); | ||
require('../proposals/array-grouping-stage-3-2'); | ||
@@ -3,0 +2,0 @@ require('../proposals/change-array-by-copy'); |
// TODO: Remove this entry from `core-js@4` | ||
require('../proposals/accessible-object-hasownproperty'); | ||
require('../proposals/array-find-from-last'); | ||
// require('../proposals/error-cause'); | ||
@@ -4,0 +5,0 @@ require('../proposals/global-this'); |
20914
898704