Comparing version 3.25.4 to 3.25.5
@@ -1,5 +0,5 @@ | ||
var uncurryThis = require('../internals/function-uncurry-this'); | ||
var uncurryThisRaw = require('../internals/function-uncurry-this-raw'); | ||
var toString = uncurryThis({}.toString); | ||
var stringSlice = uncurryThis(''.slice); | ||
var toString = uncurryThisRaw({}.toString); | ||
var stringSlice = uncurryThisRaw(''.slice); | ||
@@ -6,0 +6,0 @@ module.exports = function (it) { |
@@ -1,9 +0,4 @@ | ||
var NATIVE_BIND = require('../internals/function-bind-native'); | ||
var classofRaw = require('../internals/classof-raw'); | ||
var uncurryThisRaw = require('../internals/function-uncurry-this-raw'); | ||
var $Function = Function; | ||
var FunctionPrototype = $Function.prototype; | ||
var bind = FunctionPrototype.bind; | ||
var call = FunctionPrototype.call; | ||
var uncurryThis = NATIVE_BIND && bind.bind(call, call); | ||
module.exports = function (fn) { | ||
@@ -13,5 +8,3 @@ // Nashorn bug: | ||
// https://github.com/zloirock/core-js/issues/1130 | ||
return fn instanceof $Function ? NATIVE_BIND ? uncurryThis(fn) : function () { | ||
return call.apply(fn, arguments); | ||
} : undefined; | ||
if (classofRaw(fn) === 'Function') return uncurryThisRaw(fn); | ||
}; |
var NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection'); | ||
var global = require('../internals/global'); | ||
var uncurryThis = require('../internals/function-uncurry-this'); | ||
var isObject = require('../internals/is-object'); | ||
@@ -31,16 +30,18 @@ var createNonEnumerableProperty = require('../internals/create-non-enumerable-property'); | ||
var store = shared.state || (shared.state = new WeakMap()); | ||
var wmget = uncurryThis(store.get); | ||
var wmhas = uncurryThis(store.has); | ||
var wmset = uncurryThis(store.set); | ||
/* eslint-disable no-self-assign -- prototype methods protection */ | ||
store.get = store.get; | ||
store.has = store.has; | ||
store.set = store.set; | ||
/* eslint-enable no-self-assign -- prototype methods protection */ | ||
set = function (it, metadata) { | ||
if (wmhas(store, it)) throw TypeError(OBJECT_ALREADY_INITIALIZED); | ||
if (store.has(it)) throw TypeError(OBJECT_ALREADY_INITIALIZED); | ||
metadata.facade = it; | ||
wmset(store, it, metadata); | ||
store.set(it, metadata); | ||
return metadata; | ||
}; | ||
get = function (it) { | ||
return wmget(store, it) || {}; | ||
return store.get(it) || {}; | ||
}; | ||
has = function (it) { | ||
return wmhas(store, it); | ||
return store.has(it); | ||
}; | ||
@@ -47,0 +48,0 @@ } else { |
@@ -7,7 +7,7 @@ var IS_PURE = require('../internals/is-pure'); | ||
})('versions', []).push({ | ||
version: '3.25.4', | ||
version: '3.25.5', | ||
mode: IS_PURE ? 'pure' : 'global', | ||
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)', | ||
license: 'https://github.com/zloirock/core-js/blob/v3.25.4/LICENSE', | ||
license: 'https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE', | ||
source: 'https://github.com/zloirock/core-js' | ||
}); |
var $ = require('../internals/export'); | ||
var uncurryThis = require('../internals/function-uncurry-this'); | ||
var uncurryThisRaw = require('../internals/function-uncurry-this-raw'); | ||
var aCallable = require('../internals/a-callable'); | ||
@@ -9,4 +9,4 @@ | ||
unThis: function unThis() { | ||
return uncurryThis(aCallable(this)); | ||
return uncurryThisRaw(aCallable(this)); | ||
} | ||
}); |
{ | ||
"name": "core-js", | ||
"description": "Standard library", | ||
"version": "3.25.4", | ||
"version": "3.25.5", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1023168
3108
23606