Skip to content

Commit

Permalink
test dfs(arg)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamsonChan committed Oct 10, 2024
1 parent 34dc083 commit b896b94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion babel-plugin-expose-private-functions-and-variables.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ module.exports = function ({types: t}) {

const args = callPath.get('arguments');
args.forEach(arg => {
// dfs(arg);
// dfs(arg); // FIXME: no effect, but needed, too slow, temp comment it
// case: xxx(FUNC...) -> xxx(window.PACKAGE._.FUNC...)
if (t.isIdentifier(arg.node) && privateFuncs.has(arg.node.name)) {
funcCallCount.set(arg.node.name, funcCallCount.get(arg.node.name) + 1);
Expand Down

0 comments on commit b896b94

Please sign in to comment.