I tried this tool, but it looks like it doesn't work correctly. I used V8 11.3.244.8 and bytenode package for creating jsc files, but the source and decompiled file are significantly different. Archive with examples attached.
cmp.zip
The reason sample1 "fails" is because the functions aren't referenced or stored globally, so v8 doesn't even compile them into the jsc.
Try bytenode --compile --no-module
Hello!
I tried this tool, but it looks like it doesn't work correctly. I used V8 11.3.244.8 and bytenode package for creating jsc files, but the source and decompiled file are significantly different. Archive with examples attached. cmp.zip