From f13c490a38149263c5b61215e3f5b85d2c8cb799 Mon Sep 17 00:00:00 2001 From: Robert Jackson Date: Wed, 26 May 2021 11:18:18 -0400 Subject: [PATCH] Stop gathering instantiation stack manually. This was added waaaaaay back in 46e1e23 (2014), long before the newer `broccoli-plugin` APIs (around Broccoli@1) started creating an instantiation stack to be used for error handling across the board. Now that we extend from broccoli-plugin directly, we no longer have to do this manually. Additionally, the code in broccoli-plugin is authored such that it avoids touching the `.stack` property unless it is actually needed (forcing V8 to create the stack is costly). --- index.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/index.js b/index.js index 16322a9..25fc384 100644 --- a/index.js +++ b/index.js @@ -104,8 +104,6 @@ class Funnel extends Plugin { this._setupFilter('exclude'); this._matchedWalk = this.canMatchWalk(); - - this._instantiatedStack = (new Error()).stack; this._buildStart = undefined; }