Get bytecode of file/function
Examples:
All file
node --print-bytecode --print-code-verbose ./index.mjs > bytecode
Show only function ‘testFunction’ in ‘index.mjs’ file
node --print-bytecode --print-bytecode-filter=testFunction ./index.mjs
Another flags:
- https://gist.github.com/Drag13/345136498ee2f2605f188f22d2258af0
- https://gist.github.com/Drag13/92089a081a0056dd6872b77c2af88d94