3 ms·
SpiderMonkey has something that we call ExpressionDecompiler [1]. Basically it allows us to decompile some subset of the JS bytecode. Fun fact: At some point in
by evilpie 12y ago
SpiderMonkey has something that we call ExpressionDecompiler [1]. Basically it allows us to decompile some subset of the JS bytecode. Fun fact: At some point in time SpiderMonkey could actually decompile all bytecode and this is how we used to generate the result of Function#toString. [2]
[1] https://dxr.mozilla.org/mozilla-central/search?q=ExpressionDecompiler https://dxr.mozilla.org/mozilla-central/search?q=ExpressionD...
[2] https://bugzilla.mozilla.org/show_bug.cgi?id=718969 https://bugzilla.mozilla.org/show_bug.cgi?id=718969