Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to decompile this jsc file? #2

Closed
215090240 opened this issue May 22, 2018 · 3 comments
Closed

how to decompile this jsc file? #2

215090240 opened this issue May 22, 2018 · 3 comments

Comments

@215090240
Copy link

jsc.txt
how to decompile this jsc file?

@irelance
Copy link
Owner

I am not sure if this script was compile by spider-monkey. If it does, it may compile by a higher version.
This project would decompile script for magic number like this: 2C C0 73 B9
But your script is: 42 C0 73 B9

@irelance
Copy link
Owner

I have download the source of 45 version, and found this in js/src/vm/Xdr.h:
static const uint32_t XDR_BYTECODE_VERSION_SUBTRAHEND = 330; static const uint32_t XDR_BYTECODE_VERSION = uint32_t(0xb973c0de - XDR_BYTECODE_VERSION_SUBTRAHEND);

and 0xb973c0de-330==0xb973c042

that means your script may compile by spider-monkey-45

@yeyiqun
Copy link

yeyiqun commented May 6, 2019

jsc.txt
how to decompile this jsc file?

https://github.com/yeyiqun/cocos2d-jsc-decompiler
This will help u.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants