From 3490f8acb5627b5c426ac2262dc6bc5a8628e9a1 Mon Sep 17 00:00:00 2001 From: jdalton Date: Fri, 15 May 2015 20:36:34 -0700 Subject: [PATCH] Ensure `LodashWrapper.prototype.thru` exists before creating a wrapper in `flow`. --- lodash.src.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lodash.src.js b/lodash.src.js index 53c4b1dce..c970ceda6 100644 --- a/lodash.src.js +++ b/lodash.src.js @@ -3488,7 +3488,7 @@ if (typeof func != 'function') { throw new TypeError(FUNC_ERROR_TEXT); } - if (!wrapper && getFuncName(func) == 'wrapper') { + if (!wrapper && LodashWrapper.prototype.thru && getFuncName(func) == 'wrapper') { wrapper = new LodashWrapper([]); } }