Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
lib: disable eslint rule in trace_mgr.js
Browse files Browse the repository at this point in the history
The error created isn't ever thrown, it's just used to get an
approximate stack.

PR-URL: #502
Reviewed-By: Seth Brenith <sethb@microsoft.com>
  • Loading branch information
kfarnung committed Mar 27, 2018
1 parent 038d65b commit bdb2130
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/trace_mgr.js
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,8 @@ const directIsAbsolute = (process.platform === 'win32') ?
* Create and return a fuzzy stack match for the current call.
*/
function generateFuzzyStack(eventKind) {
//Create an array of the file/lines for user space code in the call stack
// Create an array of the file/lines for user space code in the call stack.
// eslint-disable-next-line no-restricted-syntax
let errstk = new Error()
.stack
.split('\n')
Expand Down

0 comments on commit bdb2130

Please sign in to comment.