From 8228376160c7f15fa468f42d803074027bad6a55 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Thu, 24 Dec 2015 14:15:39 -0600 Subject: [PATCH] Use `assignValue` in `baseClone` to avoid strict mode errors. --- lodash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lodash.js b/lodash.js index 16fe7af71..7c6045ea0 100644 --- a/lodash.js +++ b/lodash.js @@ -2333,7 +2333,7 @@ // Recursively populate clone (susceptible to call stack limits). (isArr ? arrayEach : baseForOwn)(value, function(subValue, key) { - result[key] = baseClone(subValue, isDeep, customizer, key, value, stack); + assignValue(result, key, baseClone(subValue, isDeep, customizer, key, value, stack)); }); return result; }