Closed naivefun closed 3 years ago
Let's say I need detect some dangerous js api call, when I found it in the AST I'd like to remove the node, and re-generate the updated code from mutated AST nodes. How can I do that?
see https://github.com/estools/escodegen
Let's say I need detect some dangerous js api call, when I found it in the AST I'd like to remove the node, and re-generate the updated code from mutated AST nodes. How can I do that?