mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 10:57:49 +00:00
Move Reflect assignment.
This commit is contained in:
12
lodash.js
12
lodash.js
@@ -729,7 +729,6 @@
|
|||||||
Math = context.Math,
|
Math = context.Math,
|
||||||
Number = context.Number,
|
Number = context.Number,
|
||||||
Object = context.Object,
|
Object = context.Object,
|
||||||
Reflect = context.Reflect,
|
|
||||||
RegExp = context.RegExp,
|
RegExp = context.RegExp,
|
||||||
String = context.String,
|
String = context.String,
|
||||||
TypeError = context.TypeError;
|
TypeError = context.TypeError;
|
||||||
@@ -766,19 +765,20 @@
|
|||||||
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
|
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
|
||||||
);
|
);
|
||||||
|
|
||||||
/** Native method references. */
|
/** Native method and object references. */
|
||||||
var ArrayBuffer = context.ArrayBuffer,
|
var ArrayBuffer = context.ArrayBuffer,
|
||||||
|
Reflect = context.Reflect,
|
||||||
|
Set = getNative(context, 'Set'),
|
||||||
|
Uint8Array = context.Uint8Array,
|
||||||
|
WeakMap = getNative(context, 'WeakMap'),
|
||||||
clearTimeout = context.clearTimeout,
|
clearTimeout = context.clearTimeout,
|
||||||
enumerate = Reflect ? Reflect.enumerate : undefined,
|
enumerate = Reflect ? Reflect.enumerate : undefined,
|
||||||
getPrototypeOf = Object.getPrototypeOf,
|
getPrototypeOf = Object.getPrototypeOf,
|
||||||
parseFloat = context.parseFloat,
|
parseFloat = context.parseFloat,
|
||||||
pow = Math.pow,
|
pow = Math.pow,
|
||||||
propertyIsEnumerable = objectProto.propertyIsEnumerable,
|
propertyIsEnumerable = objectProto.propertyIsEnumerable,
|
||||||
Set = getNative(context, 'Set'),
|
|
||||||
setTimeout = context.setTimeout,
|
setTimeout = context.setTimeout,
|
||||||
splice = arrayProto.splice,
|
splice = arrayProto.splice;
|
||||||
Uint8Array = context.Uint8Array,
|
|
||||||
WeakMap = getNative(context, 'WeakMap');
|
|
||||||
|
|
||||||
/* Native method references for those with the same name as other `lodash` methods. */
|
/* Native method references for those with the same name as other `lodash` methods. */
|
||||||
var nativeCeil = Math.ceil,
|
var nativeCeil = Math.ceil,
|
||||||
|
|||||||
Reference in New Issue
Block a user