From 46e1e23539309cad718b7c9e989d81344c2e9bee Mon Sep 17 00:00:00 2001 From: Robert Jackson Date: Wed, 26 Nov 2014 17:24:49 -0500 Subject: [PATCH] Add initial stack upon creation. Allows easier debugging (can now see exactly where in the Brocfile this tree was created). --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index 504b64e..5ad454c 100644 --- a/index.js +++ b/index.js @@ -46,6 +46,8 @@ function Funnel(inputTree, options) { if (this.exclude && !Array.isArray(this.exclude)) { throw new Error('Invalid exclude option, it must be an array.'); } + + this._instantiatedStack = (new Error()).stack } Funnel.__proto__ = CoreObject;