I just saw this post, and I was wondering if it's safe to get v8 bytecode in that fashion with --print-bytecode.

1 Answer 1


--print-bytecode is not safe.

echo "process.exit(42)" > test.js
node --print-bytecode ./test.js

It exists with status_code = 42. So that code is getting executed. It is not safe.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.