Skip to content

Commit

Permalink
Instrument: Define state. getSourcesNode upfront [refactor]
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Dec 21, 2023
1 parent 8bbdf5a commit d9458d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/instrument/modify.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ function modifyAst(ast, filename, isCommonJs, isStrict, sources, evalState) {
internalVarsPrefixNum: 0,
trackerVarNode: undefined,
getScopeIdVarNode: undefined,
getSourcesNode: undefined,
functions: [],
fileContainsFunctionsOrEval: false,
secondPass: (fn, ...params) => secondPassQueue.push({fn, params})
Expand Down

0 comments on commit d9458d9

Please sign in to comment.