From 3c342adb6732c89d80bb7d0490ff9e98b6d9fccf Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Fri, 17 Jul 2015 00:16:40 -0700 Subject: [PATCH] Move `Reflect` assignment. --- lodash.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lodash.js b/lodash.js index 4fc8af50a..8195d0140 100644 --- a/lodash.js +++ b/lodash.js @@ -729,7 +729,6 @@ Math = context.Math, Number = context.Number, Object = context.Object, - Reflect = context.Reflect, RegExp = context.RegExp, String = context.String, TypeError = context.TypeError; @@ -766,19 +765,20 @@ .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' ); - /** Native method references. */ + /** Native method and object references. */ var ArrayBuffer = context.ArrayBuffer, + Reflect = context.Reflect, + Set = getNative(context, 'Set'), + Uint8Array = context.Uint8Array, + WeakMap = getNative(context, 'WeakMap'), clearTimeout = context.clearTimeout, enumerate = Reflect ? Reflect.enumerate : undefined, getPrototypeOf = Object.getPrototypeOf, parseFloat = context.parseFloat, pow = Math.pow, propertyIsEnumerable = objectProto.propertyIsEnumerable, - Set = getNative(context, 'Set'), setTimeout = context.setTimeout, - splice = arrayProto.splice, - Uint8Array = context.Uint8Array, - WeakMap = getNative(context, 'WeakMap'); + splice = arrayProto.splice; /* Native method references for those with the same name as other `lodash` methods. */ var nativeCeil = Math.ceil,