Skip to content

Commit

Permalink
Add initial stack upon creation.
Browse files Browse the repository at this point in the history
Allows easier debugging (can now see exactly where in the Brocfile this
tree was created).
  • Loading branch information
rwjblue committed Nov 26, 2014

Verified

This commit was signed with the committer’s verified signature. The key has expired.
rwjblue Robert Jackson
1 parent ac9e0b7 commit 46e1e23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 46e1e23

Please sign in to comment.