suleram / View8

View8 - Decompiles serialized V8 objects back into high-level readable code.
157 stars 18 forks source link

incorrect decompilation #6

Open karasovsky opened 1 month ago

karasovsky commented 1 month ago

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

j4k0xb commented 1 month ago

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