mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 15:57:48 +00:00
Bump to v4.16.3.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import constant from './constant.js';
|
||||
import defineProperty from './_defineProperty.js';
|
||||
import identity from './identity.js';
|
||||
import nativeDefineProperty from './_nativeDefineProperty.js';
|
||||
|
||||
/**
|
||||
* The base implementation of `setToString` without support for hot loop shorting.
|
||||
@@ -10,8 +10,8 @@ import nativeDefineProperty from './_nativeDefineProperty.js';
|
||||
* @param {Function} string The `toString` result.
|
||||
* @returns {Function} Returns `func`.
|
||||
*/
|
||||
var baseSetToString = !nativeDefineProperty ? identity : function(func, string) {
|
||||
return nativeDefineProperty(func, 'toString', {
|
||||
var baseSetToString = !defineProperty ? identity : function(func, string) {
|
||||
return defineProperty(func, 'toString', {
|
||||
'configurable': true,
|
||||
'enumerable': false,
|
||||
'value': constant(string),
|
||||
|
||||
Reference in New Issue
Block a user