Gábor Molnár
2014-02-09 13:50:01 UTC
Hello all,
I'd like to understand a binary file format used to store JavaScript code,
and would appriciate any help. The application I'm looking at is using some
older version of SpiderMonkey as embedded JS engine, and stores it's
initialization JS code in a binary file. The file format itself looks
somewhat similar to the binary JS files found in StartupCache files of
Thunderbird. It's a serialization format for the SpiderMonkey JavaScript
AST, I guess.
Is this file format documented somewhere? If not, where should I look in
the mozilla source code to find out more about the
serialization/deserialization process? Do you think that SpiderMonkey could
somehow turn this AST-like representation back into JS code?
Thanks,
Gábor
I'd like to understand a binary file format used to store JavaScript code,
and would appriciate any help. The application I'm looking at is using some
older version of SpiderMonkey as embedded JS engine, and stores it's
initialization JS code in a binary file. The file format itself looks
somewhat similar to the binary JS files found in StartupCache files of
Thunderbird. It's a serialization format for the SpiderMonkey JavaScript
AST, I guess.
Is this file format documented somewhere? If not, where should I look in
the mozilla source code to find out more about the
serialization/deserialization process? Do you think that SpiderMonkey could
somehow turn this AST-like representation back into JS code?
Thanks,
Gábor